Gentoo Archives: gentoo-dev

From: Steven J Long <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: /usr vs. initramfs redux
Date: Sat, 06 Aug 2011 19:21:27
Message-Id: j1k45h$pf0$1@dough.gmane.org
In Reply to: Re: [gentoo-dev] /usr vs. initramfs redux by Sven Vermeulen
1 Sven Vermeulen wrote:
2
3 > On Fri, Aug 05, 2011 at 07:42:29PM -0500, William Hubbs wrote:
4 >> On Fri, Aug 05, 2011 at 10:06:48PM +0200, Sven Vermeulen wrote:
5 >> > That said, I'm a bit hesitant to describing that we "recommend" it
6 >> > regardless of the situation. What is wrong with describing when? At
7 >> > least inform our users that the udev rules have evolved to more than
8 >> > just "detect and mknod" scripts and that they are now relying on files
9 >> > and binaries available in other locations, like /usr and /var.
10
11 That seems reasonable.
12 >>
13 >> It looks like the situation where we will have to have one is if /usr
14 >> and /var are not on the same file system as /, because of how udev has
15 >> evolved.
16 >
17 > This isn't always true. I have /usr and /var on separate logical volumes
18 > (and as such, separate file systems) yet I don't use DEVTMPFS nor an
19 > initrd/initramfs, so I'm sure that the answer is a bit more specific.
20 >
21 I have the same setup and no issues either. I think the problem is for other
22 devices, eg someone mentioned having a bluetooth adapter in their laptop
23 which gets picked up at boot by udev, but needs helpers in /usr.
24
25 According to https://bugs.gentoo.org/show_bug.cgi?id=364235#c1 udev marks
26 (or marked) failing probers as missing devices, not failed, so udev-
27 postmount doesn't pick on them as needing to be rescanned.
28
29 I'm not sure if that bug's been fixed or not; the call to util_run_program
30 is no longer in that function at:
31 http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob_plain;f=udev/udev-
32 rules.c;hb=HEAD
33 ..but it might well have the same logical error for all I know.
34
35 I don't get why we can't allow udev to need localmount, as described in the
36 bug, with CONFIG_DEVTMPFS creating nodes needed to mount /usr /var etc,
37 especially as that setting is now being recommended by upstream. (And ofc we
38 don't have to use it if it's not needed.)
39
40 Regards,
41 igli.
42 --
43 #friendly-coders -- We're friendly, but we're not /that/ friendly ;-)

Replies

Subject Author
Re: [gentoo-dev] Re: /usr vs. initramfs redux Chris Coleman <chrsclmn@×××××.com>
Re: [gentoo-dev] Re: /usr vs. initramfs redux William Hubbs <williamh@g.o>