Page 1 of 1

Support for adding/loading squashfs from rootfs/initrd

Posted: 01 Jul 2016, 09:50
by NiKiZe
Hi!

This is a feature request of sorts.

Using ipxe to do network booting and http downloads in ipxe is quick and reliable and avoids the need for the init script to do it's own http fetch (sometimes the network inside sysrcd does not work for some reason or other, but a otherwise working environment is still expected), here is an example:

Code: Select all

kernel ${base-url}isolinux/altker${bitn}
initrd ${base-url}isolinux/initram.igz
initrd ${base-url}sysrcd.dat /sysrcd.dat
boot
Here the sysrcd.dat file is downloaded and gets cpio headers added by ipxe, which the kernel then shows as an extra file in the rootfs.

Now the only thing that would be needed for this to actually work out of the box, is for the linux init script to check the existing filesystem for the squashfs file, before trying to mount and search other places.

Below is 2 different approaches some of us in the ipxe community has taken, but would be great to get it to work without patching and hacking our own solutions ;)

https://gist.github.com/robinsmidsrod/1 ... 8f0e6892df

http://b800.org/sysr/sysrcd.ipxe
http://b800.org/sysr/init.patch.txt

Re: Support for adding/loading squashfs from rootfs/initrd

Posted: 16 Jul 2016, 19:37
by admin
The init script in systemrescuecd-x86-4.8.1-beta002.iso has been patched.

Re: Support for adding/loading squashfs from rootfs/initrd

Posted: 18 Jul 2016, 18:25
by NiKiZe
Updated my existing scripts and using the beta, everything works perfect Thanks!

Something that might need a revisit is loading of SRM modules (is there any official SRM archive? maybe parts, such as git, that have been requested but does not fit the main image could have official SRM releases?)