Gentoo Archives: gentoo-user

From: Mike Edenfield <kutulu@××××××.org>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Wed, 28 Mar 2012 17:40:31
Message-Id: 001d01cd0d09$54160b50$fc4221f0$@kutulu.org
In Reply to: RE: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs? by Pandu Poluan
1 From: Pandu Poluan [mailto:pandu@××××××.info]
2 > On Mar 28, 2012 11:27 AM, "Mike Edenfield" <kutulu@××××××.org> wrote:
3
4 >> Well, for one, the initramfs solution is not generally considered "ugly"
5 >> except by a select vocal few who object to it on vague, unarticulated
6 >> grounds.
7
8 > Check out the email from William Kenworth in this mailing list; he's having
9 > trouble with initramfs being a blackbox.
10
11 I don't see how you can really call initramfs a 'black box"; it's certainly as open, or moreso, as the kernel, or grub, or /sbin/init; it's just a mini-filesystem with its own init:
12
13 apollo kutulu # lsinitrd /boot/initramfs-3.2.7-hardened-apollo-0.img
14 /boot/initramfs-3.2.7-hardened-apollo-0.img: 2.6M
15 ========================================================================
16 ========================================================================
17 drwxr-xr-x 15 root root 0 Mar 28 13:32 .
18 drwxr-xr-x 2 root root 0 Mar 28 13:32 dev
19 drwxr-xr-x 2 root root 0 Mar 28 13:32 root
20 drwxr-xr-x 2 root root 0 Mar 28 13:32 bin
21 -rws--x--x 1 root root 105584 Feb 28 17:46 bin/mount
22 -rwxr-xr-x 1 root root 26536 Feb 28 17:46 bin/dmesg
23 -rwxr-xr-x 1 root root 30696 Feb 21 17:12 bin/uname
24 -rwxr-xr-x 1 root root 34776 Feb 21 17:12 bin/chroot
25 -rwxr-xr-x 1 root root 137624 Mar 27 13:14 bin/dash
26 -rwxr-xr-x 1 root root 71640 Feb 21 17:12 bin/stty
27 -rwxr-xr-x 1 root root 30680 Feb 21 17:12 bin/basename
28 -rwxr-xr-x 1 root root 34776 Feb 21 17:12 bin/mknod
29 lrwxrwxrwx 1 root root 4 Mar 28 13:32 bin/sh -> dash
30 .
31 .
32 .
33 -rwxr-xr-x 1 root root 14176 Feb 28 17:46 sbin/switch_root
34 -rwxr-xr-x 1 root root 12622 Feb 15 12:05 init
35 drwxr-xr-x 2 root root 0 Mar 28 13:32 tmp
36 drwxr-xr-x 2 root root 0 Mar 28 13:32 proc
37 drwxr-xr-x 5 root root 0 Mar 28 13:32 lib64