From 34479bfa02d664b207fbe745fa76d20c31961cd0 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Thu, 10 Oct 2013 14:56:28 +0200 Subject: add ability to disable LVM activation on boot (#1015065) --- rc.d/rc.sysinit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1