3
0
Fork 0
forked from mirrors/nixpkgs

nixos netboot: explicitly specify initrd

Needed for iPXE on UEFI, see http://forum.ipxe.org/archive/index.php/thread-7589.html
This commit is contained in:
Nikolay Amiantov 2019-07-15 17:44:22 +03:00
parent 6152007747
commit e4837acf21

View file

@ -84,7 +84,7 @@ with lib;
system.build.netbootIpxeScript = pkgs.writeTextDir "netboot.ipxe" ''
#!ipxe
kernel ${pkgs.stdenv.hostPlatform.platform.kernelTarget} init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
kernel ${pkgs.stdenv.hostPlatform.platform.kernelTarget} init=${config.system.build.toplevel}/init initrd=initrd ${toString config.boot.kernelParams}
initrd initrd
boot
'';