Fix boot.ipxe name and add host-ipxe template
This commit is contained in:
parent
5ebc1a76d0
commit
36ffc2cebf
|
@ -121,7 +121,7 @@ build_pxe() {
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Copying base iPXE configuration... "
|
echo -n "Copying base iPXE configuration... "
|
||||||
cp templates/boot.pxe ${outputdir}/boot.pxe
|
cp templates/boot.ipxe ${outputdir}/boot.ipxe
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Copying preseed template... "
|
echo -n "Copying preseed template... "
|
||||||
|
|
|
@ -9,7 +9,7 @@ set initrd initrd.img
|
||||||
set imgargs-base vga=normal nomodeset boot=live components ethdevice-timeout=300 timezone=America/Toronto fetch=${root-url}/filesystem.squashfs username=root
|
set imgargs-base vga=normal nomodeset boot=live components ethdevice-timeout=300 timezone=America/Toronto fetch=${root-url}/filesystem.squashfs username=root
|
||||||
set imgargs-pvcinstall pvcinstall.preseed=on pvcinstall.seed_host=${next-server} pvcinstall.seed_file=/host/mac-${mac:hexraw}.preseed
|
set imgargs-pvcinstall pvcinstall.preseed=on pvcinstall.seed_host=${next-server} pvcinstall.seed_file=/host/mac-${mac:hexraw}.preseed
|
||||||
|
|
||||||
# Load per-host kernel command line parameters (should contain ${imgargs-host} if present)
|
# Load per-host kernel command line parameters
|
||||||
chain --autofree ${root-url}/host/mac-${mac:hexraw}.ipxe ||
|
chain --autofree ${root-url}/host/mac-${mac:hexraw}.ipxe ||
|
||||||
|
|
||||||
# Set default menu options
|
# Set default menu options
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!ipxe
|
||||||
|
|
||||||
|
{% if imgargs_host is defined and imgargs_host %}
|
||||||
|
set imgargs-host {{ imgargs_host }}
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue