]> git.proxmox.com Git - pve-installer.git/commit
zfs: create dataset var-lib-vz for /var/lib/vz
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 21 Nov 2023 13:11:18 +0000 (14:11 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Nov 2023 13:19:54 +0000 (14:19 +0100)
commit445b95223e1ec0757f3827384e0ee2c3f060917f
tree4b22e5013b077ad25c2310a315aeb388ce558b73
parent6b01ac545b992f7e57fe38a7114ea68cb5e48d30
zfs: create dataset var-lib-vz for /var/lib/vz

Creating rpool/var/lib/vz and all intermediate datasets causes a
service-failure of `var.mount` upon shutdown.

creating the dataset for /var/lib/vz directly at the rpool and setting
its mountpoint property seems the most robust way to address this.

The alternative approach of setting `canmount=off` on the `var`
dataset seems a bit dangerous (users setting a zfs property and
suddenly hiding their /var contents).

The only small downside to this approach is that the setting of the
mountpoint happens quite a bit after extracting the data - but this
would probably be better addressed with a refactoring of the
lowlevel-installer code (setting the zfs-pool up under /target and
getting rid of a few special cases)

Fixes: dd19d40ceac179ba18652f1d6c3e4c23f246af00
Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Proxmox/Install.pm