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.iva...@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:
 override_dh_missing:
        dh_missing --fail-missing
 
+override_dh_installsystemd:
+       dh_installsystemd --no-stop-on-upgrade -X zfs-zed.service
+       dh_installsystemd --name zfs-zed
+
 override_dh_installdocs:
        dh_installdocs
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to