Gentoo - initramfs with busybox, lvm and some more...

Posted on Tue 11 August 2015 in Linux • 1 min read

Preparations

mkdir -p /usr/src/initramfs/{bin,lib/modules,dev,etc,mnt/root,proc,root,sbin,sys}
cp -a /dev/{null,console,tty,sda*} /usr/src/initramfs/dev/

busybox

USE="static make-symlinks -pam -savedconfig" emerge --root=/usr/src/initramfs/ -av busybox

LVM
LVM provides already a static binary :)

cp /sbin/lvm.static /usr/src/initramfs/lvm