[pve-devel] [PATCH zfsonlinux 16/16] do not restart zfs-volume-wait.service

Stoiko Ivanov s.ivanov at proxmox.com
Thu Jun 17 15:52:23 CEST 2021

in postinst. During the transition from ZFS 0.8.x to 2.0.0 zvol_wait,
which is called by zfs-volume-wait.service was changed to also output
the redacted_snap property of the datasets.
This property does not exist if the kernelmodule is still 0.8.x,
causing an error to be printed to the journal.

Since the starting the service should not change anything in a running
system (the zvol links are already present), simply don't restart it
on upgrades

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index e5166882..9c14e1bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -107,6 +107,10 @@ override_dh_install:
 	dh_missing --fail-missing
+	dh_installsystemd --no-stop-on-upgrade -X zfs-zed.service
+	dh_installsystemd --name zfs-zed
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))

More information about the pve-devel mailing list