From 28d837e16553817fd933e99a7502e6da4353c9d4 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 28 Jun 2013 16:56:10 +0200 Subject: [PATCH] Use LVM by default, disable it only for 2.* releases --- deployment.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index 3570344..36028d9 100755 --- a/deployment.sh +++ b/deployment.sh @@ -47,7 +47,7 @@ HALT=false REBOOT=false STATUS_DIRECTORY=/srv/deployment/ STATUS_WAIT=0 -LVM=false +LVM=true if [ -L /sys/block/vda ] ; then export DISK=vda # will be configured as /dev/vda @@ -322,7 +322,21 @@ if checkBootParam ngcpcmaster ; then CMASTER=$(getBootParam ngcpcmaster) fi +if checkBootParam ngcpnolvm ; then + logit "Disabling LVM due to ngcpnolvm boot option" + LVM=false +fi + +case "$SP_VERSION" in + 2.*) + logit "Disabling LVM due to SP_VERSION [$SP_VERSION] matching 2.*" + LVM=false + ;; +esac + +# allow forcing LVM mode if checkBootParam ngcplvm ; then + logit "Enabling LVM due to ngcplvm boot option" LVM=true fi