0

I have a initrd and a cloop (squashFS). Which is the simplest way, to merge those 2 files into one single initrd file, for the purpose of PXE-booting the whole image at once without any bootstrapping process?

Of course, it will be a live Linux system so it SHOULD be read-only. Size limitations does not matter since the target system does have plenty of ram and the network it will boot over is fast.

1 Answers1

0

What you are trying to do is not a good approach; it will force a surely too big TFTP transfer.

It is better if you mod the initrd in order to turn on the SAMBA/NFS client or even using wget for an HTTP transfer that will bring at boot time your squashfs file.

You can see how this approach is used by Serva (I'm related to Serva development) when PXE booting/installing most of the live distros available today.

http://vercot.com/~serva/an/NonWindowsPXE3.html

you do not need to assembly a completely new initrd just create a complementary one adding the missing components (if any) and the correspondingly updated init script.

Pat
  • 3,048