Congratulations ! Genkernel 3.2.1 now supports LVM2 nearly perfectly :-) There's only a simple fix to add: I had to add the "vgchange -ay 2>/dev/null" command, just before (or after) the "startVolumes" command in linuxrc. Then, no custom linuxrc will be needed anymore :-)
Did you put dolvm2 on the cmdline? This isnt needed for my lvm2 setup that I have.
Works for me without any patch as well (and worked quite a few version before).
Oh. It indeed boots well with dolvm2 (which I hadn't tried with the last few genkernel versions). There's only warnings displayed during boot: Found volume group "z1_hdd" using metadata type lvm2 /dev/z1_hdd: opendir failed: No such file or directory /dev/z1_hdd: opendir failed: No such file or directory /dev/z1_hdd: opendir failed: No such file or directory /dev/z1_hdd: opendir failed: No such file or directory /dev/z1_hdd: opendir failed: No such file or directory /dev/z1_hdd: opendir failed: No such file or directory >> Activating Volume Groups 6 logical volume(s) in volume group "z1_hdd" now active The 6 warnings correspond to my 6 logical volumes. I use the default genkernel.conf. Should I try instrumenting my linuxrc, or is this known warnings ? Thanks again
Sending the stderr to /dev/null. InCVS
Thanks ! (and sorry for having overlooked the dolvm2 switch)... Oh, another small thing I noticed while testing: a) The --bootsplash switch will activate initrd creation (instead of initramfs), even if no bootsplash is found by genkernel. b) What are the steps needed (for the user) to boot properly with initramfs instead of initrd ?
a) Use --gensplash b) None, an initramfs is generated by default on 2.6 but your bootloader treats it the same as a normal initrd so no extra changes should be needed
Fixed in 3.2.2, thanks!
I just wanted to pass by, and confirm that genkernel 3.2.3 works *great* - now it boots *wonderfully* with root fs on lvm2, using either initrd and initramfs ! Zero warnings :-) Great work and congratulations to Tim, Eric and others !