Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Anyone switched to eudev yet?
Date: Tue, 25 Dec 2012 22:15:07
Message-Id: 20121225221342.41bc6143@digimed.co.uk
In Reply to: Re: [gentoo-user] Re: Anyone switched to eudev yet? by Mark Knecht
1 On Tue, 25 Dec 2012 14:00:36 -0800, Mark Knecht wrote:
2
3 > > The right tools are included, and documented, with your kernel.
4 > > Create a plain text config file detailing the contents of the
5 > > initramfs and set CONFIG_INITRAMFS_SOURCE to the path top this file.
6 > > That and an init script are all you need to have the initramfs
7 > > automatically built with the current versions of all files when you
8 > > compile your kernel.
9
10 > If you have one handy and it's not something huge (I don't think it is
11 > but I don't really know) maybe you could post an example of what that
12 > file looks like?
13
14 This is the file I use on a system that has / on a LUKS filesystem on top
15 of LVM. The format is documented in the kernel docs at
16 Documentation/filesystems/ramfs-rootfs-initramfs.txt
17
18
19 dir /bin 755 0 0
20 file /bin/busybox /bin/busybox 755 0 0
21 slink /bin/sh busybox 777 0 0
22
23 dir /realroot 755 0 0
24 dir /etc 755 0 0
25 dir /proc 755 0 0
26 dir /sys 755 0 0
27
28 dir /sbin 755 0 0
29 file /sbin/lvm.static /sbin/lvm.static 755 0 0
30 #file /sbin/mdadm /sbin/mdadm 755 0 0
31 file /sbin/cryptsetup /sbin/cryptsetup 755 0 0
32
33 file /sbin/e2fsck /sbin/e2fsck 755 0 0
34 dir /lib 755 0 0
35 file /lib/libext2fs.so /usr/lib64/libext2fs.so 755 0 0
36
37 dir /dev 755 0 0
38 nod /dev/console 600 0 0 c 5 1
39 nod /dev/null 666 0 0 c 1 3
40 nod /dev/tty 666 0 0 c 5 0
41 nod /dev/urandom 666 0 0 c 1 9
42
43 file /init /usr/src/init.sh 755 0 0
44
45
46 --
47 Neil Bothwick
48
49 Don't take life too seriously, you won't get out alive.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: Anyone switched to eudev yet? Mark Knecht <markknecht@×××××.com>