nixos/stage-1-systemd: Fix booting grub tests

This commit is contained in:
Janne Heß 2022-04-13 12:47:07 +01:00
parent ecaee94bc0
commit ffb320378b
No known key found for this signature in database
GPG key ID: 69165158F05265DF

View file

@ -59,7 +59,10 @@ let
${if config.boot.initrd.systemd.enable then ''
cp ${config.system.build.bootStage2} $out/prepare-root
substituteInPlace $out/prepare-root --subst-var-by systemConfig $out
ln -s "$systemd/lib/systemd/systemd" $out/init
# This must not be a symlink or the abs_path of the grub builder for the tests
# will resolve the symlink and we end up with a path that doesn't point to a
# system closure.
cp "$systemd/lib/systemd/systemd" $out/init
'' else ''
cp ${config.system.build.bootStage2} $out/init
substituteInPlace $out/init --subst-var-by systemConfig $out