aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-10-10 14:56:28 +0200
committerLukas Nykryn <lnykryn@redhat.com>2013-10-10 14:56:28 +0200
commit34479bfa02d664b207fbe745fa76d20c31961cd0 (patch)
tree36356f120a57fd0fb21ca9572ab81f8ebf3f19bd /rc.d
parent7e613b4d96cd24c6d7d3650d152587ceeb5b2ca4 (diff)
downloadinitscripts-34479bfa02d664b207fbe745fa76d20c31961cd0.tar
initscripts-34479bfa02d664b207fbe745fa76d20c31961cd0.tar.gz
initscripts-34479bfa02d664b207fbe745fa76d20c31961cd0.tar.bz2
initscripts-34479bfa02d664b207fbe745fa76d20c31961cd0.tar.xz
initscripts-34479bfa02d664b207fbe745fa76d20c31961cd0.zip
add ability to disable LVM activation on boot (#1015065)
Diffstat (limited to 'rc.d')
-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