mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 11:32:41 +00:00
d/postinst: fix up whitespace indentation
we actually use a sane one here so do not mess with that Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ec5affc9e4
commit
395dbe6b7b
14
debian/postinst
vendored
14
debian/postinst
vendored
@ -25,17 +25,17 @@ set_lvm_conf() {
|
|||||||
# update global_filter if:
|
# update global_filter if:
|
||||||
# it is empty and there is no marker OR exactly the one we set before 8.1.4
|
# 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")\
|
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
|
then
|
||||||
SET_FILTER=1
|
SET_FILTER=1
|
||||||
BACKUP=1
|
BACKUP=1
|
||||||
# print warning if global_filter is set but not our old/new default
|
# print warning if global_filter is set but not our old/new default
|
||||||
elif test -n "$OLD_VALUE"\
|
elif test -n "$OLD_VALUE"\
|
||||||
&& ! echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'\
|
&& ! echo "$OLD_VALUE" | grep -qF '="r|/dev/zd.*|"'\
|
||||||
&& ! echo "$OLD_VALUE" | grep -qF "$NEW_VALUE";
|
&& ! echo "$OLD_VALUE" | grep -qF "$NEW_VALUE";
|
||||||
then
|
then
|
||||||
echo "non-default 'global_filter' value '$OLD_VALUE' in /etc/lvm/lvm.conf, not setting '$NEW_VALUE' automatically"
|
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 "consider adapting your 'global_filter' manually."
|
||||||
fi
|
fi
|
||||||
# should be the default since bullseye
|
# should be the default since bullseye
|
||||||
if lvmconfig --typeconfig full devices/scan_lvs | grep -qv 'scan_lvs=0'; then
|
if lvmconfig --typeconfig full devices/scan_lvs | grep -qv 'scan_lvs=0'; then
|
||||||
@ -75,8 +75,8 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! lvmconfig --validate; then
|
if ! lvmconfig --validate; then
|
||||||
echo "Invalid LVM config detected - restoring from /etc/lvm/lvm.conf.bak"
|
echo "Invalid LVM config detected - restoring from /etc/lvm/lvm.conf.bak"
|
||||||
mv /etc/lvm/lvm.conf.bak /etc/lvm/lvm.conf
|
mv /etc/lvm/lvm.conf.bak /etc/lvm/lvm.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user