There are a couple issues with udev and lvm2 in genkernel version 3.1.0a First the lvm links are created incorrectly. Second the runUdev function in /etc/initrd.scripts does not create the /dev/mapper/control link Third the initrd is not large enough to handle the /dev files being created. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: lvm2 fails to start Expected Results: lvm2 should start and activate the logical volumes USE="static" emerge lvm2 genkernel --udev initrd Tested inside a user-mode-linux instance linux init=/linuxrc root=/dev/ram0 real_root=shell devfs ramdisk=4155 initrd=/boot/initrd-2.6.9-umlbb2-r1-bb2
Created attachment 44577 [details, diff] Allows udev to discover lvm2 This patch allows lvm2 to run in a pure udev initrd. It also automatically probes for lvm2 modules, namely dm-mod dm-snapshot dm-mirror. **** Note the mirror or snapshot functionality of these modules was not tested **** mirror and snapshot may require additional software to work properly.
Created attachment 44590 [details, diff] Allows udev to discover lvm2 -- udev startup is much quicker This patch allows lvm2 to work with lvm2. Also, the udev startup routines were rewritten to be much faster.
Ok, the patch is in genkernel-3.0.2c, it should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!
This patch leaves some nasty messages about at boot on a LiveCD.
Created attachment 48096 [details, diff] This patch hopefully fixes the livecd error messages
I'm going to REOPEN so it shows up in your active bug list.
Created attachment 48108 [details, diff] genkernel-3.1.0d-rmdev.patch This patch applies to genkernel 3.1.0d and has error checking still in it.
Fixed in 3.1.0e...