fixup uefi test by passing all initrds as cmdline args
This commit is contained in:
parent
9e6f3170e8
commit
ac77c6630a
@ -4,10 +4,13 @@
|
|||||||
, pkgs
|
, pkgs
|
||||||
,
|
,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
cmdlineinitrds = builtins.concatStringsSep " " (builtins.map (name: "initrd=${name}") (builtins.attrNames initrds));
|
||||||
|
in
|
||||||
runCommand "netboot" {
|
runCommand "netboot" {
|
||||||
pxe = ''
|
pxe = ''
|
||||||
#!ipxe
|
#!ipxe
|
||||||
kernel ${pkgs.stdenv.hostPlatform.platform.kernelTarget} init=${config.system.build.toplevel}/init initrd=initrd ${toString config.boot.kernelParams}
|
kernel ${pkgs.stdenv.hostPlatform.platform.kernelTarget} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
|
||||||
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd ${name}") initrds))}
|
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd ${name}") initrds))}
|
||||||
initrd initrd
|
initrd initrd
|
||||||
boot
|
boot
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user