From 12a64d05b4562109b63e9f500d3f38127d1b97d1 Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 25 Apr 2024 08:38:06 +0200 Subject: [PATCH] Removes old dhcp_boot file and add tftp to template --- etc/dhcp_boot.ipxe.tmpl | 2 +- tftpboot/ipxe_scripts/dhcp_boot.ipxe | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 tftpboot/ipxe_scripts/dhcp_boot.ipxe diff --git a/etc/dhcp_boot.ipxe.tmpl b/etc/dhcp_boot.ipxe.tmpl index 7a0b65f..fa8cd7c 100644 --- a/etc/dhcp_boot.ipxe.tmpl +++ b/etc/dhcp_boot.ipxe.tmpl @@ -2,7 +2,7 @@ echo Booting by ipxe echo MAC Address: ${net0/mac} set macaddress ${net0/mac} -set prefix http://SERVERIP/ipxe_scripts +set prefix tftp://SERVERIP/ipxe_scripts echo Prefix: ${prefix} set configfile ${prefix}/01-${net0/mac} echo Config File: ${configfile} diff --git a/tftpboot/ipxe_scripts/dhcp_boot.ipxe b/tftpboot/ipxe_scripts/dhcp_boot.ipxe deleted file mode 100644 index 015bb93..0000000 --- a/tftpboot/ipxe_scripts/dhcp_boot.ipxe +++ /dev/null @@ -1,14 +0,0 @@ -#!ipxe -echo Booting by ipxe -echo MAC Address: ${net0/mac} -set macaddress ${net0/mac} -set prefix tftp://172.17.8.71/ipxe_scripts -echo Prefix: ${prefix} -set configfile ${prefix}/01-${net0/mac} -echo Config File: ${configfile} -ifopen net0 -route - -sleep 5 -chain ${configfile} || -chain $prefix/default.ipxe