Gentoo Archives: gentoo-dev

From: Dale <rdalek1967@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Warn users not to do separate /usr partition without proper initramfs in the handbook?
Date: Thu, 11 Aug 2011 06:04:59
Message-Id: 4E4370DF.2050705@gmail.com
In Reply to: Re: [gentoo-dev] Warn users not to do separate /usr partition without proper initramfs in the handbook? by Rich Freeman
1 Rich Freeman wrote:
2 > On Thu, Aug 4, 2011 at 7:49 AM, Dale<rdalek1967@×××××.com> wrote:
3 >
4 >> From a users perspective. Could it not be possible to have some USE flag,
5 >> or other setting, that would tell portage that a separate /usr partition is
6 >> being used then have the needed files placed elsewhere on / ? I'm not a dev
7 >> and I don't play one on TV but I do like options and being able to customize
8 >> some things. It is one of the things Gentoo is about.
9 >>
10 >>
11 > I don't see what a USE flag gets us:
12 >
13 > 1. If you have a separate /usr then either booting without an
14 > initramfs will work or it won't work - largely depending on how
15 > complex your environment is. Booting with an initramfs will work
16 > reliably (well, if we sort out the initramfs situation - having done
17 > some more tests I have one virtual machine which was pretty easy to
18 > get running, and one physical box that for whatever reason wouldn't
19 > detect/start the RAID).
20 >
21 > 2. If you don't have a separate /usr than booting will always work
22 > regardless of where the files are, since the system will always find
23 > them.
24 >
25 > Unless what is being proposed is to actually do the Fedora thing and
26 > make /bin, /lib, etc a symlink into /usr/bin, /usr/lib, etc than there
27 > isn't anything at package-install time for the flag to affect. If we
28 > do want to do the Fedora thing would a flag even work, since those
29 > directories get created from the stage3? It seems to me that if you
30 > want the symlinks you just need to set them up when doing the install
31 > (or from a rescue disk), and then the package manager should follow
32 > the links when doing subsequent installs. Oh, and not all package
33 > managers like the top-level directories to be symlinks.
34 >
35 > I think that as was the case with the use of bash vs sh we may need to
36 > have a policy decision made here. Right now the general policy has
37 > been to conform to FHS, and the Fedora/etc proposal does not do this
38 > (and apparently we are already a bit out of compliance). I think that
39 > moving in a different direction is a big decision.
40 >
41 > And, if we do decide to move in that direction, I agree with Samuli
42 > that we need a transition plan. Packages can't just start breaking
43 > initrd-less setups left and right overnight. To start, we need to get
44 > dracut/etc configurable to mount any necessary directories (I checked
45 > - it is fairly smart (though not 100% effective) at finding root, but
46 > does not try to mount anything else). Then we need to update our
47 > documentation. Then we need to communicate the change to users, and
48 > give them time to migrate. Only then can packages have the freedom to
49 > require usr to be available at boot.
50 >
51 > I don't propose that if we move in this direction that we "fix"
52 > anything that isn't currently FHS-compliant - the damage is already
53 > done. We just should avoid propagating the situation until users are
54 > ready.
55 >
56 > Rich
57 >
58 >
59
60 The USE flag was just one option that I could think of. That is why I
61 also said "or something" along with that. You devs are good at coming
62 up with neato tools to fix stuff. ;-)
63
64 I understand that Fedora is wanting to do this. What I don't understand
65 is why. It seems it is udev that is wrecking this havoc. I like udev
66 myself and it seems to work fine but surely something can be done to fix
67 this without breaking something else. It seems from your reply that it
68 is breaking the rules of FHS which if Gentoo follows will then be
69 breaking FHS as well and this will likely force others to do the same.
70 Can someone not explain this to the people that are pushing this?
71
72 I saw it mentioned somewhere that a /run directory can be created.
73 Since it would likely be small, I wouldn't mind that. I'd be fine if
74 the same files were installed in both /usr/*bin and /run. I just like
75 being able to have /usr, /var and /home on a separate partition without
76 a init*. I usually start my system out as /, /boot and /home. Then
77 after the install is done, I figure up the space need based on the space
78 used and copy to a new drive that is partitioned out as /boot, /, /home,
79 /usr, and /var. I am sure there are users that have to have /usr and/or
80 /var on a separate partition but don't want a init* to deal with.
81
82 Again, my $0.02. Whatever that is worth.
83
84 Dale
85
86 :-) :-)

Replies