User:Vaukai/custom initramfs

Initramfs for LVM2
Started from forums topic and based on Custom Initramfs

Kernel
For embedding the initramfs into the kernel image, the kernel option Initramfs source file(s) ( CONFIG_INITRAMFS_SOURCE ) needs to contain the root of the initramfs, (e.g. ):

Directory structure
(From Custom Initramfs)

Looks like:

Adding LVM2
Here LVM2 is used without the static-libs USE flag.

External resources

 * kernel.org documentation