This commit is contained in:
@@ -2,7 +2,22 @@
|
||||
|
||||
let
|
||||
pxeRoot = "/srv/pxe";
|
||||
pxeBaseUrl = "http://pxe-boot";
|
||||
pxeBaseUrl = "http://192.168.2.247";
|
||||
|
||||
bootIpxe = pkgs.writeText "boot.ipxe" ''
|
||||
#!ipxe
|
||||
|
||||
dhcp
|
||||
echo Booting from PXE server...
|
||||
chain ${pxeBaseUrl}/menu.ipxe
|
||||
'';
|
||||
|
||||
autoexecIpxe = pkgs.writeText "autoexec.ipxe" ''
|
||||
#!ipxe
|
||||
|
||||
dhcp
|
||||
chain ${pxeBaseUrl}/boot.ipxe
|
||||
'';
|
||||
|
||||
menuIpxe = pkgs.writeText "menu.ipxe" ''
|
||||
#!ipxe
|
||||
@@ -78,6 +93,10 @@ in
|
||||
"d ${pxeRoot}/nixos 0755 root root -"
|
||||
"d ${pxeRoot}/ubuntu 0755 root root -"
|
||||
"d ${pxeRoot}/rescue 0755 root root -"
|
||||
"C+ ${pxeRoot}/boot.ipxe 0644 root root - ${bootIpxe}"
|
||||
"C+ ${pxeRoot}/menu.ipxe 0644 root root - ${menuIpxe}"
|
||||
"C+ ${pxeRoot}/boot/autoexec.ipxe 0644 root root - ${autoexecIpxe}"
|
||||
"C+ ${pxeRoot}/boot/boot.ipxe 0644 root root - ${bootIpxe}"
|
||||
"C+ ${pxeRoot}/boot/menu.ipxe 0644 root root - ${menuIpxe}"
|
||||
"C+ ${pxeRoot}/boot/ipxe.efi 0644 root root - ${pkgs.ipxe}/ipxe.efi"
|
||||
"C+ ${pxeRoot}/boot/undionly.kpxe 0644 root root - ${pkgs.ipxe}/undionly.kpxe"
|
||||
|
||||
Reference in New Issue
Block a user