summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 0337826..211ee0a 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -236,6 +236,16 @@ run_hook sysinit_premount
/bin/mount -a -t $NETFS -O no_netdev
stat_done
+# enable monitoring of lvm2 groups, now that the filesystems are mounted rw
+if [[ $USELVM =~ yes|YES && -x /sbin/lvm && -d /sys/block ]]; then
+ stat_busy "Activating monitoring of LVM2 groups"
+ if /sbin/vgchange --monitor y >/dev/null; then
+ stat_done
+ else
+ stat_fail
+ fi
+fi
+
status "Retrying failed UDEV events" /sbin/udevadm trigger --action=add --type=failed
status "Activating Swap" /sbin/swapon -a