On Mon, Mar 13, 2017 at 02:22:16PM -0400, Mike Fiedler wrote: > Package: zfsutils-linux > Version: 0.6.5.9-2 > Followup-For: Bug #842237 > > Dear Maintainer, > > zfs-share.service fails to start: > > < > Mar 13 13:40:34 deb01 systemd[1]: Starting ZFS file system shares... > -- Subject: Unit zfs-share.service has begun start-up > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- Unit zfs-share.service has begun starting up. > Mar 13 13:40:34 deb01 zed[11499]: eid=2 class=config.sync pool=rpool > Mar 13 13:40:34 deb01 systemd[11500]: zfs-share.service: Failed at step EXEC > spawning /usr/bin/rm: No such file or directory > -- Subject: Process /usr/bin/rm could not be executed > -- Defined-By: systemd > -- Support: https://www.debian.org/support > -- > -- The process /usr/bin/rm could not be executed and failed. > -- > -- The error number returned by this process is 2. > > > > I checked the changelog for 0.6.5.9-3 and I also do not see /bin/rm > changed/added for the x86 32&64 arch for "dh_auto_configure" > > Thank you! > > Mike > > >
I think 0.6.5.9-1 closed this one prematurely - only the second part of my proposed fixes was applied, the first one (hardcoding "/bin/rm" instead of "@bindir@/rm" was missed (I attached a full patch again this time).
>From 190dfc116dfa539a8e1e40c120e4b961c986c2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbich...@proxmox.com> Date: Thu, 27 Oct 2016 10:18:55 +0200 Subject: [PATCH] fix rm path in zfs-share.service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> --- etc/systemd/system/zfs-share.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/systemd/system/zfs-share.service.in b/etc/systemd/system/zfs-share.service.in index 688731e..494f5cb 100644 --- a/etc/systemd/system/zfs-share.service.in +++ b/etc/systemd/system/zfs-share.service.in @@ -9,7 +9,7 @@ PartOf=smb.service [Service] Type=oneshot RemainAfterExit=yes -ExecStartPre=-@bindir@/rm -f /etc/dfs/sharetab +ExecStartPre=-/bin/rm -f /etc/dfs/sharetab ExecStart=@sbindir@/zfs share -a [Install] -- 2.1.4