[Gllug] Getting initramfs to work

Adrian McMenamin adrian at mcmen.demon.co.uk
Tue Aug 9 20:19:27 UTC 2005


On Tue, 2005-08-09 at 17:01 +0100, Peter Grandi wrote:

> 
> Weird phrase -- «the kernel to build a .cpio file» :-). In
> 'initramfs' setups the kernel _unpacks_ a '.cpio' file; the
> kernel build process just if so specified appends that '.cpio'
> file to the kernel image.
> 

>From Documentation (Documentation/early-userspace/README):

IMAGE BUILDING method

The kernel build process can also build an early userspace image from
source parts rather than supplying a cpio archive.  This method provides
a way to create images with root-owned files even though the image was
built by an unprivileged user.

The image is specified as one or more sources in
CONFIG_INITRAMFS_SOURCE.  Sources can be either directories or files -
cpio archives are *not* allowed when building from sources.


===
That is just what I've done. Thanks for the pointers - I'd looked at
some already (eg the GENTOO one) and they weren't that helpful (being
built around GRUB or LILO) but the others should help

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list