Tweak vm bootstrap process

It's unconventional (albeit minor) to create a symlink in /, so avoid.
This commit is contained in:
Louis Bettens 2021-08-06 18:11:20 +02:00
parent 77cb37d929
commit 4083eb2574

View File

@ -19,7 +19,7 @@ mkIf (cfg.enable && cfg.guestType == "qemu") {
};
boot.initrd.postMountCommands = ''
cp -PT /mnt-root/boot/init /mnt-root/init
test "$stage2Init" = /init && stage2Init=/boot/init
'';
boot.loader.grub.enable = mkDefault false;