1 |
On Wed, Jan 4, 2012 at 10:19 AM, Steven J Long |
2 |
<slong@××××××××××××××××××.uk> wrote: |
3 |
> I was under the impression that anyone using lvm+raid (+luks) on root |
4 |
> already has an initramfs, and there are docs out there about that, but sure, |
5 |
> improving those docs and the software is always a good idea. |
6 |
|
7 |
Anybody running root on lvm+raid(+luks) is already using an initramfs. |
8 |
However, the guide I linked does not run root on lvm/luks - just on |
9 |
raid1, which does not require an initramfs. That guide puts |
10 |
everything BUT root on LVM, assuming that baselayout/sysvinit/openrc |
11 |
on root can mount everything else. |
12 |
|
13 |
The existing initramfs tools do not yet mount /usr regardless. I'm |
14 |
sure RedHat and others pursing a read-only /usr required at time of |
15 |
boot will be looking to rectify this, so Gentoo is moving along with |
16 |
upstream for dracut/etc here. |
17 |
|
18 |
> Yeah I've been using lvm for several years now, with a separate /usr and no |
19 |
> initramfs, though not on root. For the last few months, I've been running |
20 |
> with the tweaked udev startup scripts I mentioned before, so /usr is mounted |
21 |
> before udev starts (which is possible since I don't have any requirement on |
22 |
> udev-initialised hardware to mount local drives.) |
23 |
|
24 |
That's basically my configuration as well. However, I don't really |
25 |
want to set the goal of making Gentoo support my own configuration. |
26 |
In any case, having a more robust initramfs solution for separate /usr |
27 |
should support this and many other configurations. |
28 |
|
29 |
> |
30 |
> Regardless of the ability to backup just /usr, I'm still not convinced about |
31 |
> moving every binary there. It certainly isn't necessary, in that the |
32 |
> packages we install respect prefix, and there's no need to change the |
33 |
> ebuilds to make packages work; further most admins already have their own |
34 |
> backup scripts in-place. |
35 |
|
36 |
I think that the path of least resistance is to move with upstream - |
37 |
let's not try to force everything into /usr unless that becomes a |
38 |
consensus with many other distros. However, we can at least look to |
39 |
accomodate things like udev that are moving in this direction so that |
40 |
it doesn't create sparks within Gentoo. |
41 |
|
42 |
> |
43 |
> I for one, would like to be able to run in single-user mode off just the |
44 |
> rootfs, in case for instance, something goes wrong with lvm and /usr won't |
45 |
> mount; and I don't want to duplicate all those utilities in an initramfs. If |
46 |
> that's not going to be possible, fair enough: that's life. |
47 |
> |
48 |
|
49 |
I hear you. No harm in supporting this as long as seems reasonable, |
50 |
but you're going to be stuck without udev from the sound of things, |
51 |
and that is a lot to lose. |
52 |
|
53 |
You should give dracut a shot - it does quite a bit automagically |
54 |
though for some reason it doesn't set up my raid properly (I can do it |
55 |
with a simple mdadm --assemble --scan from the dracut shell), and it |
56 |
doesn't mount /usr yet. So, it isn't there, but it does quite a bit |
57 |
just the same. |
58 |
|
59 |
Rich |