Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Re: eudev project announcement
Date: Fri, 21 Dec 2012 14:39:28
Message-Id: CAGfcS_=buNuCfd6MA230UtYXnyX4Qe+d3g1CcNyUGA0wb9FCOA@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: eudev project announcement by Ian Stakenvicius
1 On Fri, Dec 21, 2012 at 8:51 AM, Ian Stakenvicius <axs@g.o> wrote:
2 > On 21/12/12 03:10 AM, J. Roeleveld wrote:
3 >
4 >> An init* needs to be kept in sync with the rest of the system as
5 >> well.
6 >
7 > Just to be clear, by "init*" you mean {initrd,initramfs} , correct?
8
9 Seems likely.
10
11 However, for the most part it really only needs to be kept in sync
12 with the kernel. Smarter ones like dracut that might do things like
13 keep a copy of mdadm.conf internally might need to be updated when
14 your disks change, and so on. In general, however, they only need
15 changes when either your kernel changes, or the path to the root
16 filesystem changes (by path I mean mdadm/lvm/nfs/etc).
17
18 Everything inside the initramfs is self-contained and does not have
19 dependencies on anything outside. Sure, it might not have the latest
20 version of udev inside or whatever, but unless you need the latest
21 version of udev to mount root it isn't a problem. The contents of the
22 initramfs are generally discarded once root and /usr are mounted.
23
24 However, I can vouch that an initramfs can make things interesting if
25 you do move your root filesystem. I just moved mine to lvm and forgot
26 to update fstab.sys. Dracut does pay attention to your root
27 filesystem in fstab and fstab.sys - it uses the kernel line to find
28 root, but once it is mounted fstab gets read and used to remount it.
29 Oh, and if fstab and fstab.sys have differing root lines both get
30 sort-of-mounted (it mounts what is in fstab, and then mounts fstab.sys
31 over it as far as I can tell - running mount and finding that you have
32 /sysroot mounted on a mountpoint that you can't even get to is fun).
33
34 But, I wouldn't be running root on lvm but for the initramfs, so it
35 was worth the trouble. Anybody who moves around root without a boot
36 CD handy is asking for trouble anyway.
37
38 Rich

Replies

Subject Author
Re: [gentoo-dev] Re: eudev project announcement "J. Roeleveld" <joost@××××××××.org>