Fix netboot: hardcode config values, simplify boot chain
- Hardcode ROOT_URL and OVERLAYROOT in netboot script - Remove cmdline parsing that was failing silently - Simplify boot.ipxe to chain to netboot.ipxe - Add rebuild-initramfs.sh helper script Resolves kernel panic caused by cmdline parsing issues.
This commit is contained in:
@@ -1,17 +1,5 @@
|
||||
#!ipxe
|
||||
echo Booting Ubuntu Noble K3s Node via iPXE
|
||||
|
||||
# Clear any previous images
|
||||
imgfree
|
||||
|
||||
echo Loading kernel from http://192.168.100.1:8800/vmlinuz
|
||||
kernel --name vmlinuz http://192.168.100.1:8800/vmlinuz
|
||||
|
||||
echo Loading initramfs from http://192.168.100.1:8800/initrd-netboot.img
|
||||
initrd --name initrd http://192.168.100.1:8800/initrd-netboot.img
|
||||
|
||||
echo Setting kernel arguments for HTTP root mounting
|
||||
imgargs vmlinuz initrd=initrd 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...
|
||||
boot vmlinuz
|
||||
echo Configuring network via DHCP...
|
||||
dhcp
|
||||
echo Chaining to dynamic boot script...
|
||||
chain http://192.168.100.1:8800/netboot.ipxe
|
||||
|
||||
Reference in New Issue
Block a user