genkernel creates an initramfs that contains the lvm binary, but not the symlinks pointing to it (e.g. pvscan). I installed the following two ebuilds: sys-kernel/genkernel-3.4.10-r1 USE="-bash-completion (-ibm) (-selinux)" sys-fs/lvm2-2.02.36 USE="lvm1 readline static -clvm -cman -gulm (-selinux)" LVM2 is installed completely with symlinks: stone / # ls -laR /sbin/lvm /sbin/pvscan -r-xr-xr-x 1 root root 1041880 Nov 12 00:09 /sbin/lvm lrwxrwxrwx 1 root root 3 Nov 12 00:09 /sbin/pvscan -> lvm Then I create an initramfs with: stone / # genkernel initrd * Gentoo Linux Genkernel; Version 3.4.10 * Running with options: initrd * Clearing cache dir contents from /var/cache/genkernel * >> removing busybox-1.7.4-x86.tar.bz2 * >> removing src rm: cannot remove `/var/cache/genkernel/src': Is a directory * Linux Kernel 2.6.27-gentoo-r2 for x86... * busybox: >> Applying patches... * busybox: >> Configuring... * busybox: >> Compiling... * busybox: >> Copying to cache... * initramfs: >> Initializing... * >> Appending base_layout cpio data... * >> Appending auxilary cpio data... * >> Appending busybox cpio data... * >> Appending lvm cpio data... * LVM: Adding support (using local static binaries)... * >> Appending mdadm cpio data... * >> Appending modules cpio data... * WARNING... WARNING... WARNING... * Additional kernel cmdline arguments that *may* be required to boot properly... * add "dolvm" for lvm support * Do NOT report kernel bugs as genkernel bugs unless your bug * is about the default genkernel configuration... * * Make sure you have the latest genkernel before reporting bugs. genkernel.conf: OLDCONFIG="yes" MENUCONFIG="no" CLEAN="no" MRPROPER="no" MOUNTBOOT="yes" SYMLINK="yes" SAVE_CONFIG="yes" USECOLOR="yes" CLEAR_CACHE_DIR="yes" LVM="yes" BUSYBOX="yes" MDADM="yes"
Created attachment 171650 [details] generated initramfs
Looking into the code, I noticed that the symbolic links are created at boot-time, but only if the init script is called as /init, whereas my grub entry specified rdinit=/linuxrc It seems this is not supported, but I missed this in the documentation.