1 |
On Sunday 11 March 2012 21:08:47 Robin H. Johnson wrote: |
2 |
> On Sun, Mar 11, 2012 at 12:49:11AM -0600, Ryan Hill wrote: |
3 |
> > On Sat, 10 Mar 2012 20:27:06 -0600 |
4 |
> > |
5 |
> > William Hubbs <williamh@g.o> wrote: |
6 |
> > > An initramfs which does this is created by >=sys-kernel/genkernel-3.4.25 |
7 |
> > > or |
8 |
> > > |
9 |
> > > >=sys-kernel/dracut-017-r1. If you do not want to use these tools, be |
10 |
> > > |
11 |
> > > sure any initramfs you create pre-mounts /usr. |
12 |
> > |
13 |
> > We should really have some documentation on how to create a minimal |
14 |
> > initramfs that mounts /usr (if we don't already, I haven't looked). I've |
15 |
> > never needed one until now and don't have the foggiest idea how it's |
16 |
> > done. I can't be the only one. |
17 |
> |
18 |
> The quickest initramfs, assuming that ALL kernel modules you need to |
19 |
> boot are already compiled into your kernel: |
20 |
> genkernel --install --no-ramdisk-modules initramfs |
21 |
|
22 |
But this will not mount /usr. At least it did not for me. |
23 |
To make it work you have to |
24 |
|
25 |
# echo "/usr" >> /etc/initramfs.mounts |
26 |
|
27 |
and recreate the ramdisk (genkernel ramdisk) |
28 |
|
29 |
I had to look into the code for that as this seems not to be documented |
30 |
anywhere. |
31 |
|
32 |
-Marc |