[Pkg-zfsonlinux-devel] Bug#979434: zfsutils-linux: fails to install if zfs module is not loaded

Andrei POPESCU andreimpopescu at gmail.com
Wed Jan 6 17:28:45 GMT 2021


Package: zfsutils-linux
Version: 0.8.6-1
Severity: normal
X-Debbugs-Cc: andreimpopescu at gmail.com

Dear Maintainer,


During install the package tries to start nfs-share.service, which fails 
in case the zfs module is not loaded, for whatever reason[1].


As far as I can tell the start of nfs-share.service is due to

    WantedBy=zfs.target

which is started in postinst.


A quick fix could be to add a condition like for zfs-mount.service, etc.

   ConditionPathIsDirectory=/sys/module/zfs



[1] For some reason when installing the buster-backports package on 
buster the postinst of zfsutils-linux is run before attempting to build 
the zfs module, so this bug is always triggered if installing the 
package by itself (even though dkms-zfs is also installed in the dame 
run, due to the Recommends).


Kind regards,
Andrei


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 5.9.0-5-arm64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfsutils-linux depends on:
ii  libblkid1        2.36.1-4
ii  libc6            2.31-9
ii  libnvpair1linux  0.8.6-1
ii  libuuid1         2.36.1-4
ii  libuutil1linux   0.8.6-1
ii  libzfs2linux     0.8.6-1
ii  libzpool2linux   0.8.6-1
ii  python3          3.9.1-1

Versions of packages zfsutils-linux recommends:
ii  lsb-base                11.1.0
ii  zfs-dkms [zfs-modules]  0.8.6-1
pn  zfs-zed                 <none>

Versions of packages zfsutils-linux suggests:
ii  nfs-kernel-server           1:1.3.4-4
pn  samba-common-bin            <none>
pn  zfs-initramfs | zfs-dracut  <none>

-- Configuration Files:
/etc/sudoers.d/zfs [Errno 13] Permission denied: '/etc/sudoers.d/zfs'

-- no debconf information



More information about the Pkg-zfsonlinux-devel mailing list