Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: newsitem: unmasking udev-181
Date: Sun, 11 Mar 2012 21:09:44
In Reply to: [gentoo-dev] Re: newsitem: unmasking udev-181 by Ryan Hill
On Sun, Mar 11, 2012 at 12:49:11AM -0600, Ryan Hill wrote:
> On Sat, 10 Mar 2012 20:27:06 -0600 > William Hubbs <williamh@g.o> wrote: > > > An initramfs which does this is created by >=sys-kernel/genkernel-3.4.25 or > > >=sys-kernel/dracut-017-r1. If you do not want to use these tools, be > > sure any initramfs you create pre-mounts /usr. > > We should really have some documentation on how to create a minimal initramfs > that mounts /usr (if we don't already, I haven't looked). I've never needed > one until now and don't have the foggiest idea how it's done. I can't be the > only one.
The quickest initramfs, assuming that ALL kernel modules you need to boot are already compiled into your kernel: genkernel --install --no-ramdisk-modules initramfs Plus optionally, If you know you don't need any of these, include this to make it really get much smaller: --no-lvm --no-mdadm --no-dmraid --no-multipath --no-iscsi --no-disklabel --no-firmware --no-zfs --no-gpg --no-luks --disklabel is the one that most users will probably need, if they use LABEL= or UUID= arguments in your fstab. That will give you an initramfs of scripts + busybox. On my box, it's about 724KiB. -- Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : robbat2@g.o GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85


Subject Author
[gentoo-dev] Re: newsitem: unmasking udev-181 Duncan <1i5t5.duncan@×××.net>
Re: [gentoo-dev] Re: newsitem: unmasking udev-181 Marc Schiffbauer <mschiff@g.o>
[gentoo-dev] Re: newsitem: unmasking udev-181 Ryan Hill <dirtyepic@g.o>