Gentoo Archives: gentoo-dev

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /usr vs. initramfs redux
Date: Fri, 05 Aug 2011 13:14:12
Message-Id: 20110805131248.GB18949@lisa.schiffbauer.lan
In Reply to: Re: [gentoo-dev] /usr vs. initramfs redux by Rich Freeman
1 * Rich Freeman schrieb am 05.08.11 um 14:42 Uhr:
2 > On Fri, Aug 5, 2011 at 6:16 AM, Marc Schiffbauer <mschiff@g.o> wrote:
3 > > * Robin H. Johnson schrieb am 05.08.11 um 02:46 Uhr:
4 > > [...]
5 > >> That leaves the only reasonable solution as #2. In terms of minimal
6 > >> impact, I propose that we offer users with a static system an absolutely
7 > >> minimal initramfs, that _just_ mounts the required directories.  No
8 > >> modules, no LVM, no MD, no crypto etc - if you want that functionality,
9 > >> go and use genkernel or dracut. If your fstab contains a line like:
10 > >> /dev/sdXN /usr ...
11 > >> Then this initramfs is for you.
12 > >>
13 > >> The minimal initramfs would do the following.
14 > >>
15 > >> 1. Mount devtmpfs/sysfs/procfs as needed to access devices.
16 > >> 2. Mount real_root to /newroot
17 > >> 3. Read /newroot/etc/initramfs.mount and /newroot/etc/fstab
18 > >> 4.1. If /newroot/etc/initramfs.mount does not exist
19 > >>      Assume it contains only: /usr /var
20 > >> 5. Mount the combined items from said files
21 > >> 6. pivot_root.
22 > >>
23 > >
24 > > That sounds like a good compromise to me!
25 >
26 > Why would we build yet another initramfs vs just making dracut work
27 > reliably? You can already build dracut without support for
28 > lvm+raid+luks/etc.
29
30 If dracut will have some sort of minimalistic mode where it would
31 generate such an initrd that would be ok IMO.
32
33 OTOH the initrd that Robin described would be a very static solution
34 with almost no dependencies, so if genkernel had a USE flag like
35 "dracut" it would be possible to build it without dracut
36 dependency and thus would allow for smaller systems.
37
38 -Marc
39 --
40 8AAC 5F46 83B4 DB70 8317 3723 296C 6CCA 35A6 4134

Replies

Subject Author
Re: [gentoo-dev] /usr vs. initramfs redux Samuli Suominen <ssuominen@g.o>