> Tried upgrading from stretch-backports 0.7.11 to testing 0.7.12, because
> the package hadn't landed in backports yet, and discovered it broke on
> dpkg --configure :
> Setting up zfsutils-linux (0.7.12-1) ...
> insserv: Service zfs-zed has to be enabled to start service zfs-share
> insserv: exiting now!
> update-rc.d: error: insserv rejected the script header
> dpkg: error processing package zfsutils-linux (--configure):
> subprocess installed post-installation script returned error exit status 1
> dpkg: dependency problems prevent configuration of zfs-zed:
> zfs-zed depends on zfsutils-linux (>= 0.7.12-1); however:
>  Package zfsutils-linux is not configured yet.
> 
> Someone else had reported a similar problem upstream to ZoL from Ubuntu's
> packages, at:
> https://github.com/zfsonlinux/zfs/issues/8127

Sorry! I messed up the order of packages and thought I fixed it, but I didn’t.

You have a circular dependency and that’s why it is failing. You have zfs-zed 
set to depend on zfsutils-linux, but there is a hard dependency in the 
zfs-share init file on zfs-zed. 
There is no need for zed to be running before sharing is started, however it 
does provide helpful status logging. It is not necessarily an upstream bug, 
because debian decided to split zed out as it’s own package and it’s debian’s 
tools that are having trouble with the circular dependency caused. It is safe 
to remove it from Required-Start, as shown by the systemd files not requiring 
zed to be started first.


Here is the fix, or you can move zfs-share to zfs-zed for some reason:

--- zfs-share.orig      2019-01-04 11:26:09.076322596 -0500
+++ zfs-share   2019-01-04 11:26:32.643426954 -0500
@@ -9,8 +9,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          zfs-share
-# Required-Start:    $local_fs $network $remote_fs zfs-mount zfs-zed
-# Required-Stop:     $local_fs $network $remote_fs zfs-mount zfs-zed
+# Required-Start:    $local_fs $network $remote_fs zfs-mount
+# Required-Stop:     $local_fs $network $remote_fs zfs-mount
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Should-Start:      iscsi iscsitarget istgt scst nfs-kernel-server samba 
samba4 zfs-mount zfs-zed




-chris zubrzycki
- --
PGP ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070
========================================================

Unix  _IS_  user friendly... It's just selective about who its friends are.

Reply via email to