From 395dbe6b7b41ccd63d4e039fefce67f43a1558f9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 10 Jan 2024 10:35:41 +0100 Subject: [PATCH] d/postinst: fix up whitespace indentation we actually use a sane one here so do not mess with that Signed-off-by: Thomas Lamprecht --- debian/postinst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/postinst b/debian/postinst index 8028e39e..6138ef6d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -25,17 +25,17 @@ set_lvm_conf() { # update global_filter if: # it is empty and there is no marker OR exactly the one we set before 8.1.4 if (! grep -qF "$LVM_CONF_MARKER" /etc/lvm/lvm.conf && test -z "$OLD_VALUE")\ - || (echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'); + || (echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'); then SET_FILTER=1 BACKUP=1 # print warning if global_filter is set but not our old/new default elif test -n "$OLD_VALUE"\ - && ! echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'\ - && ! echo "$OLD_VALUE" | grep -qF "$NEW_VALUE"; + && ! echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'\ + && ! echo "$OLD_VALUE" | grep -qF "$NEW_VALUE"; then - echo "non-default 'global_filter' value '$OLD_VALUE' in /etc/lvm/lvm.conf, not setting '$NEW_VALUE' automatically" - echo "consider adapting your 'global_filter' manually." + echo "non-default 'global_filter' value '$OLD_VALUE' in /etc/lvm/lvm.conf, not setting '$NEW_VALUE' automatically" + echo "consider adapting your 'global_filter' manually." fi # should be the default since bullseye if lvmconfig --typeconfig full devices/scan_lvs | grep -qv 'scan_lvs=0'; then @@ -75,8 +75,8 @@ EOF fi if ! lvmconfig --validate; then - echo "Invalid LVM config detected - restoring from /etc/lvm/lvm.conf.bak" - mv /etc/lvm/lvm.conf.bak /etc/lvm/lvm.conf + echo "Invalid LVM config detected - restoring from /etc/lvm/lvm.conf.bak" + mv /etc/lvm/lvm.conf.bak /etc/lvm/lvm.conf fi }