Updates
This commit is contained in:
@@ -10,10 +10,40 @@ in
|
||||
runCommand "netboot" {
|
||||
pxe = ''
|
||||
#!ipxe
|
||||
kernel ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
|
||||
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd ${name}") initrds))}
|
||||
initrd initrd
|
||||
boot
|
||||
:custom
|
||||
clear custom_choice
|
||||
menu NixOS netboot installer
|
||||
item --gap Role Installers
|
||||
item option_one ''${space} Boot NixOS
|
||||
item option_two ''${space} Loading an ISO
|
||||
item --gap Testing Tools (incomplete)
|
||||
item option_three ''${space} Loads another custom sub menu
|
||||
item option_four ''${space} This is option 4
|
||||
choose custom_choice || goto custom_exit
|
||||
echo ''${cls}
|
||||
goto ''${custom_choice}
|
||||
goto custom_exit
|
||||
|
||||
:option_one
|
||||
kernel http://172.16.1.6/netboot/${pkgs.stdenv.hostPlatform.linux-kernel.target}
|
||||
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd http://172.16.1.6/${name}") initrds))}
|
||||
#initrd http://172.16.1.6/netboot/initrd
|
||||
#initrd http://172.16.1.6/netboot/manifest
|
||||
#initrd http://172.16.1.6/netboot/nix-store
|
||||
imgargs ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
|
||||
boot || goto custom_exit
|
||||
|
||||
:option_two
|
||||
kernel {{ memdisk_location }} raw iso
|
||||
initrd http://path.to/iso
|
||||
boot || goto custom_exit
|
||||
|
||||
:option_three
|
||||
echo Chains into another menu...
|
||||
chain custom1.ipxe || goto custom
|
||||
|
||||
:custom_exit
|
||||
exit
|
||||
'';
|
||||
preferLocalBuild = true;
|
||||
} ''
|
||||
|
||||
Reference in New Issue
Block a user