summaryrefslogtreecommitdiff
path: root/scripts/local-top/lvm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/local-top/lvm')
-rwxr-xr-xscripts/local-top/lvm6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/local-top/lvm b/scripts/local-top/lvm
index 9a45220..f9d1490 100755
--- a/scripts/local-top/lvm
+++ b/scripts/local-top/lvm
@@ -1,6 +1,6 @@
#!/bin/sh
-PREREQ="mdadm"
+PREREQ="mdadm mdraid lvm2"
prereqs()
{
@@ -56,6 +56,10 @@ activate_vg()
vgchange -ay ${vg}
}
+if [ -e /scripts/local-top/lvm2 ]; then
+ exit 0
+fi
+
if [ ! -e /sbin/vgchange ]; then
exit 0
fi