diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-01-19 06:53:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 06:53:04 +0000 |
commit | 966ea2c020f264b2bdb44c314511b3273a225b47 (patch) | |
tree | 498b6e6cee9e5189a3a8eb5b9e4e51d961d9f5fc /nixos/modules/installer | |
parent | 00c04d99a64f77691a1c3cfe282b1be16b9dd4a8 (diff) | |
parent | 7e7510de4ac5892157145d68582137425b894382 (diff) | |
download | nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar.gz nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar.bz2 nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar.lz nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar.xz nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.tar.zst nixlib-966ea2c020f264b2bdb44c314511b3273a225b47.zip |
Merge pull request #150360 from Enzime/fix-netboot-cmdline
netboot: Support cmdline variable from netboot.xyz
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r-- | nixos/modules/installer/netboot/netboot.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix index 145f71b5d0c7..a459e7304cd4 100644 --- a/nixos/modules/installer/netboot/netboot.nix +++ b/nixos/modules/installer/netboot/netboot.nix @@ -94,7 +94,9 @@ with lib; system.build.netbootIpxeScript = pkgs.writeTextDir "netboot.ipxe" '' #!ipxe - kernel ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init initrd=initrd ${toString config.boot.kernelParams} + # Use the cmdline variable to allow the user to specify custom kernel params + # when chainloading this script from other iPXE scripts like netboot.xyz + kernel ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init initrd=initrd ${toString config.boot.kernelParams} ''${cmdline} initrd initrd boot ''; |