1 |
On Sun, Mar 11, 2012 at 12:49:11AM -0600, Ryan Hill wrote: |
2 |
> On Sat, 10 Mar 2012 20:27:06 -0600 |
3 |
> William Hubbs <williamh@g.o> wrote: |
4 |
> |
5 |
> > An initramfs which does this is created by >=sys-kernel/genkernel-3.4.25 or |
6 |
> > >=sys-kernel/dracut-017-r1. If you do not want to use these tools, be |
7 |
> > sure any initramfs you create pre-mounts /usr. |
8 |
> |
9 |
> We should really have some documentation on how to create a minimal initramfs |
10 |
> that mounts /usr (if we don't already, I haven't looked). I've never needed |
11 |
> one until now and don't have the foggiest idea how it's done. I can't be the |
12 |
> only one. |
13 |
The quickest initramfs, assuming that ALL kernel modules you need to |
14 |
boot are already compiled into your kernel: |
15 |
genkernel --install --no-ramdisk-modules initramfs |
16 |
|
17 |
Plus optionally, If you know you don't need any of these, include this |
18 |
to make it really get much smaller: |
19 |
--no-lvm --no-mdadm --no-dmraid --no-multipath --no-iscsi --no-disklabel |
20 |
--no-firmware --no-zfs --no-gpg --no-luks |
21 |
|
22 |
--disklabel is the one that most users will probably need, if they use |
23 |
LABEL= or UUID= arguments in your fstab. |
24 |
|
25 |
That will give you an initramfs of scripts + busybox. |
26 |
On my box, it's about 724KiB. |
27 |
|
28 |
-- |
29 |
Robin Hugh Johnson |
30 |
Gentoo Linux: Developer, Trustee & Infrastructure Lead |
31 |
E-Mail : robbat2@g.o |
32 |
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 |