lol

Merge pull request #210505 from notgne2/fix/systemd-initrd-allow-symlink

nixos/systemd-initrd: allow symlink into when checking for `/prepare-root`

authored by

K900 and committed by
GitHub
2bbd450b b025cb11

+1 -1
+1 -1
nixos/modules/system/boot/systemd/initrd.nix
··· 495 495 496 496 # If we are not booting a NixOS closure (e.g. init=/bin/sh), 497 497 # we don't know what root to prepare so we don't do anything 498 - if ! [ -x "/sysroot$closure/prepare-root" ]; then 498 + if ! [ -x "/sysroot$(readlink "/sysroot$closure/prepare-root" || echo "$closure/prepare-root")" ]; then 499 499 echo "NEW_INIT=''${initParam[1]}" > /etc/switch-root.conf 500 500 echo "$closure does not look like a NixOS installation - not activating" 501 501 exit 0