updated ipxe configuration
Check NixOS configurations / eval-hosts (push) Failing after 6m29s

This commit is contained in:
2026-06-02 18:05:39 +10:00
parent c718010a69
commit 83abba4e25
2 changed files with 43 additions and 2 deletions
+20 -1
View File
@@ -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"