............. ........ # LVM support for /usr, /home, /opt .... # This should be done *before* checking local # volumes, or they never get checked. # NOTE: Add needed modules for LVM or RAID, etc # to /etc/modules.autoload if needed if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \ [ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ] then ebegin "Setting up the Logical Volume Manager" #still echo stderr for debugging /sbin/vgscan >/dev/null if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ [ -f /etc/lvmtab -o -d /etc/lvm ] then /sbin/vgchange -a y >/dev/null fi eend $? "Failed to setup the LVM" fi ....... .............. On boot the system lvm not really start for me because this line is wrong: if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ [ -f /etc/lvmtab -o -d /etc/lvm ] file /etc/lvmtab exist but directory /etc/lvm not exist vgscan produce file /etc/lvmtab and directory /etc/lvmtab.d Reproducible: Always Steps to Reproduce: 1. 2. 3.
For me the correct line is: .......... ....... if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ [ -f /etc/lvmtab -o -d /etc/lvmtab.d ] .......... ...............
This patch is necessary if in the system i emerge lvm-user. With lvm2 is correct this: if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \ [ -f /etc/lvmtab -o -d /etc/lvm ] It is possible merge the correct scripts for lvm-user and lvm2 ?
Ok Close this BUG.