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

Posted on Tue 11 August 2015 in Linux • Tagged with Gentoo, linux, notepad, initrd • 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 …

Continue reading