[Pkg-zfsonlinux-devel] Bug#842237: zfs-share.service tries to call /usr/sbin/rm

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Oct 27 08:41:17 UTC 2016


Package: zfsutils-linux
Version: 0.6.5.7-2
Severity: normal

Bug #832938 changed the bindir macro to /usr/sbin in order to move the
arc* python scripts there. Unfortunately, this macro is also used in the
zfs-share.service.in file as the location of the "rm" binary - which is
installed to /bin on Debian systems.

This leads to the following error message:
Oct 26 14:00:20 srv04 systemd[3046]: Failed at step EXEC spawning /usr/sbin/rm: No such file or directory

and the file /etc/df/sharetab is not deleted on boot (/service start).

The correct approach seems to be to patch the arc* script automake files
to use the sbindir macro (although that currently gets set to /sbin ,
not /usr/sbin , so maybe the scripts need some special casing here),
and not to change the bindir macro to point to an sbin directory.

The quick and dirty fix is to hardcode /bin/rm in zfs-share.service.in.



More information about the Pkg-zfsonlinux-devel mailing list