aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 68fda45c..cdf0a85f 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -203,7 +203,12 @@ fi
[ -r /proc/mdstat -a -r /dev/md/md-device-map ] && /sbin/mdadm -IRs
if [ -x /sbin/lvm ]; then
- action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a ay --sysinit
+ if [ ! -f /.nolvm ] && ! strstr "$cmdline" nolvm ; then
+ then
+ action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a ay --sysinit
+ else
+ echo $"Logical Volume Management disabled at boot."
+ fi
fi
if [ -f /etc/crypttab ]; then