[lfs-support] LFS-7.0 with LVM

Bruce Dubbs bruce.dubbs at gmail.com
Mon Jan 30 09:40:01 PST 2012

Baho Utot wrote:
> I believe I have solved my LVM booting problem with the kernel not finding the 
> root filesystem.
>       # Start the udev daemon to continually watch for, and act on,
>       # uevents
>       /sbin/udevd --daemon
>       # Now traverse /sys in order to "coldplug" devices that have
>       # already been discovered
>       /sbin/udevadm trigger --action=add --type=subsystems
>       /sbin/udevadm trigger --action=add --type=devices
>       /sbin/udevadm trigger --action=change --type=devices
>       # Now wait for udevd to process the uevents we triggered
>       /sbin/udevadm settle
>       log_success_msg2 
> If I add /sbin/udevadm trigger --action=change --type=devices to udev script 
> in /etc/rc.d/init.d I believe everything works as long as you are using 
> initramfs.
> It will now boot and run as expected and udev places the expected links 
> in /dev/mapper.
> The action=change is for devices already attached.
> Is there any bad things going on if this is done....drawbacks...better way 
> etc.
> No other changes are needed to LFS-7.0 to make lvm root work.
> just the following
> lvm2.2.02.88
> lfs-initramfs-1.0.1
> add /sbin/udevadm trigger --action=change --type=devices 
> to /etc/rc.d/init.d/udev
> Bruce you may need to add this as a patch?

I'm not going to add this to LFS, but I may add it to BLFS.  I want to 
do some other things first.

   -- Bruce

More information about the lfs-support mailing list