]> git.proxmox.com Git - pve-manager.git/commit - debian/postinst
postinst: set custom LVM settings
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 23 Jun 2021 09:00:25 +0000 (11:00 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 09:06:22 +0000 (11:06 +0200)
commitc690885959b8ee5c278faf53dba64705d5029fbf
treee5a430e162be151b091a1453cf14b44e224e9e4b
parent48197df2b9cb4935bfd5bfdeed08bd7d50603c39
postinst: set custom LVM settings

now that we no longer ship our own LVM packages, set the relevant
filtering options here if they are missing.

for an upgrade from PVE 6.x, the following two scenarios are likely:

A: user edited config provided by our old lvm2 package. it likely
contains our (or a modified) global_filter, but the old scan_lvs
default. in this case we ignore global_filter as long as it contains our
'don't scan zvols' entry, and set scan_lvs to false.

B: config provided by our old lvm2 package was taken over by default
config from stock lvm2 package. scan_lvs defaults to false already, but
global_filter is unset (scan everything), so we need to set our own
global_filter excluding zvols.

other combinations should be handled fine as well.

for new installs (installer, install on top of Debian Bullseye) we are
always in scenario B.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/postinst