On Tue, 25 Dec 2012 14:00:36 -0800, Mark Knecht wrote:

> > The right tools are included, and documented, with your kernel.
> > Create a plain text config file detailing the contents of the
> > initramfs and set CONFIG_INITRAMFS_SOURCE to the path top  this file.
> > That and an init script are all you need to have the initramfs
> > automatically built with the current versions of all files when you
> > compile your kernel.

> If you have one handy and it's not something huge (I don't think it is
> but I don't really know) maybe you could post an example of what that
> file looks like?

This is the file I use on a system that has / on a LUKS filesystem on top
of LVM. The format is documented in the kernel docs at
Documentation/filesystems/ramfs-rootfs-initramfs.txt


dir /bin 755 0 0
file /bin/busybox /bin/busybox 755 0 0
slink /bin/sh busybox 777 0 0

dir /realroot 755 0 0
dir /etc 755 0 0
dir /proc 755 0 0
dir /sys 755 0 0

dir /sbin 755 0 0
file /sbin/lvm.static /sbin/lvm.static 755 0 0
#file /sbin/mdadm /sbin/mdadm 755 0 0
file /sbin/cryptsetup /sbin/cryptsetup 755 0 0

file /sbin/e2fsck /sbin/e2fsck 755 0 0
dir /lib 755 0 0
file /lib/libext2fs.so /usr/lib64/libext2fs.so 755 0 0

dir /dev 755 0 0
nod /dev/console 600 0 0 c 5 1
nod /dev/null 666 0 0 c 1 3
nod /dev/tty 666 0 0 c 5 0
nod /dev/urandom 666 0 0 c 1 9

file /init /usr/src/init.sh 755 0 0


-- 
Neil Bothwick

Don't take life too seriously, you won't get out alive.

Attachment: signature.asc
Description: PGP signature

Reply via email to