]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/rc.sysinit
Rescan for LVM devices again after turning on RAID devices in lvm-on-top-of-raid...
[projects/rc-scripts.git] / rc.d / rc.sysinit
index dcfe7d34a3ccef6d6a27252cd75a531654ab02a2..e2b0c6f4c0dcedad5d56e84803d5e12248b65b66 100755 (executable)
@@ -512,6 +512,10 @@ if [ -x /sbin/mdadm -a -f /etc/mdadm.conf ] || [ -f /etc/raidtab ]; then
                run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
                run_cmd "Automatic reboot in progress" reboot
            fi
+           if is_yes "$EVMS_LVM" || [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
+               run_cmd "Scanning for LVM volume groups" /sbin/vgscan && \
+                       run_cmd "Activating LVM volume groups" /sbin/vgchange -a y
+           fi
            show "Starting up RAID devices"; ok
        fi
 fi
This page took 0.026834 seconds and 4 git commands to generate.