Fix iPXE boot: load initrd before kernel, add imgfree
- Load initrd FIRST to address UEFI memory mapping requirements - Add imgfree to clear previous images before loading - Put kernel args directly on kernel line instead of using imgargs - Add break=mountroot for debugging initramfs execution
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
#!ipxe
|
#!ipxe
|
||||||
echo Booting Ubuntu Noble K3s Node via iPXE
|
echo Booting Ubuntu Noble K3s Node via iPXE
|
||||||
echo Loading kernel...
|
|
||||||
kernel http://192.168.100.1:8800/vmlinuz
|
# Clear any previous images
|
||||||
|
imgfree
|
||||||
|
|
||||||
|
# Load initrd FIRST (UEFI memory mapping requirement)
|
||||||
echo Loading initramfs...
|
echo Loading initramfs...
|
||||||
initrd http://192.168.100.1:8800/initrd-netboot.img
|
initrd http://192.168.100.1:8800/initrd-netboot.img
|
||||||
echo Setting kernel arguments for HTTP root mounting
|
|
||||||
imgargs vmlinuz initrd=initrd-netboot.img rdinit=/init boot=netboot root=http://192.168.100.1:8800/filesystem.squashfs rootfstype=squashfs overlayroot=tmpfs ip=dhcp console=tty0 console=ttyS0,115200 loglevel=7 panic=-1
|
# Then load kernel
|
||||||
|
echo Loading kernel...
|
||||||
|
kernel http://192.168.100.1:8800/vmlinuz initrd=initrd-netboot.img rdinit=/init boot=netboot root=http://192.168.100.1:8800/filesystem.squashfs rootfstype=squashfs overlayroot=tmpfs ip=dhcp console=tty0 console=ttyS0,115200 loglevel=7 panic=-1 break=mountroot
|
||||||
|
|
||||||
echo Booting system...
|
echo Booting system...
|
||||||
boot
|
boot
|
||||||
|
|||||||
Reference in New Issue
Block a user