Hi Charles,
 
> > Have anybody tried to use Debian's mkinitrd to build the initrd?
> > I am using the Debian's 2.4.17 kernel source.
> 
> If you want to use an unpatched 2.4 kernel, I suggest you at 
> least start
> with the contents of root.lrp from a distribution image.  Just make a
> ramdisk (or even better, use a pre-sized/zero'd file and the loopback
> device) on a handy linux system, format it with the filesystem of your
> choice, mount it, untar-gz the contents of root.lrp to it, 
> and use it to
> create your initial ramdisk image.

I am doing somewhat differently.  I use the lrps from the 2.9.8
distribution  (Colasal-1 Beta): root.lrp, etc.lrp, log.lrp, ...
I build a kernel and the initrd.  The initrd is just a small
cramfs with enough support to bring everything in.  Basically,

- it creates a tmpfs to hold the root filesystem,
- it untars the root.lrp on to the tmpfs,
- it does a pivot_root to swap the root filesystem,
- it signals the kernel not to bother with the "real root 
filesystem",
- it executes the stock linuxrc from the root.lrp,
- linuxrc unpacks the rest of LRPs: etc.lrp, ...
- when done, the kernel executes the /sbin/init as a normal 
bootup.

It is still a basic lrp system, except it runs in tmpfs instead
of a ramdisk.

Thanks.
Bao


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to