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?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to