On Friday 04 Jan 2013, Canek Peláez Valdés wrote: > On Fri, Jan 4, 2013 at 10:11 AM, Robin Atwood > > <robin.atw...@attglobal.net> wrote: > > Having observed all the ranting, I thought I would try systemd on a > > laptop. It actually seems to work quite well and it is a lot faster. > > However I am having trouble getting my LVM partitions mounted. I > > installed the LVM service unit from the Gentoo Wiki but it never > > completes, timing-out on a job that mounts /var. The VG is actually > > created by an initramfs and when systemd dumps you out to the emergency > > shell you can use lvs to see the volumes, /dev/mapper has all the > > correct devices and "dmsetup ls" shows the LVs. In fact, everything > > appears as it should, the partitions just don't get mounted. I > > circumvented this by putting "mount -a" in the lvm.service unit, which > > then completes and the mount jobs time-out. Everything seems to be OK > > but it is a bit of a kludge. One thing I notice is: > > > > > > > > # udevadm info -p /dev/mapper/vg00-rootfs -q all > > > > syspath not found > > > > > > > > Udev seems not to know about the LVs. Any ideas? > > How did you create your initramfs? Have you tried dracut, with > DRACUT_MODULES="lvm"? > > Regards.
I always use genkernel with LVM=YES in genkernel.conf. There is a thread about the udev issue at http://forums.gentoo.org/viewtopic-p-6837888.html . I tried the suggested work-around but it made no difference, I must still use "mount - a". -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ----------------------------------------------------------------------