#!ipxe # if kbmap is not already set, we set a default to avoid question on boot isset ${kbmap} || set kbmap us # generate a setting with 32 or 64 depending on what the cpu supports cpuid --ext 29 && set bitn 64 || set bitn 32 # This is for 4.8.1-beta002.iso or later kernel altker${bitn} initrd=initram.igz initrd=sysrcd.dat.cpio edd=off vga=791 scandelay=0 dodhcp setkmap=${kbmap} nomdadm nodmraid rootpass=l initrd initram.igz # ipxe does currently only support adding cpio headers on the fly to bzImage boots, # but not efi, for now use preadded cpio header # generate with: echo sysrcd.dat | cpio -H newc -o > sysrcd.dat.cpio initrd sysrcd.dat.cpio imgstat boot # ============================================================================================== # Anything below here is just legacy stuff that was used before official support was added # ============================================================================================== exit # This below, is from before official systemrescuecd was patched with init script support for checking rootfs for squashfs # see skipefi below iseq ${platform} efi && set cmdextra netboot=http://b800.org/sysr/sysrcd.dat || kernel altker${bitn} initrd=initram.igz initrd=init initrd=sysrcd.dat edd=off vga=791 scandelay=0 dodhcp setkmap=${kbmap} nomdadm nodmraid rootpass=l ${cmdextra} initrd initram.igz iseq ${platform} efi && goto skipefi || # modified init script that tries to loads sysrcd squashfs from initrd - AFAIK not possible to pass multiple initrds in efi mode. # this is because we know net access is working in ipxe - but unsure about linux kernel support, it works using ipxe way of adding cpio headers # see /init.patch.txt for changes initrd -n init init.new? init mode=755 initrd -n sysrcd.dat sysrcd.dat sysrcd.dat :skipefi #initrd sysrcd.md5 /sysrcd.md5 #imgstat boot