Support for adding/loading squashfs from rootfs/initrd

Questions related to network booting via PXE
NiKiZe
Posts: 2
Joined: 01 Jul 2016, 09:32

Support for adding/loading squashfs from rootfs/initrd

Postby NiKiZe » 01 Jul 2016, 09:50

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

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

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

Postby admin » 16 Jul 2016, 19:37

The init script in systemrescuecd-x86-4.8.1-beta002.iso has been patched.

NiKiZe
Posts: 2
Joined: 01 Jul 2016, 09:32

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

Postby NiKiZe » 18 Jul 2016, 18:25

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?)


Return to “Network Boot via PXE”

Who is online

Users browsing this forum: No registered users and 4 guests