From 49f86653f16881441006ab03d1c9a4035aaf4e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 27 Oct 2016 11:25:24 +0200 Subject: [PATCH] fix #1184: zfs-share.service has wrong path to 'rm' command --- .../fix-rm-path-in-zfs-share-service.patch | 25 +++++++++++++++++++ zfs-patches/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 zfs-patches/fix-rm-path-in-zfs-share-service.patch diff --git a/zfs-patches/fix-rm-path-in-zfs-share-service.patch b/zfs-patches/fix-rm-path-in-zfs-share-service.patch new file mode 100644 index 0000000..27a8ea9 --- /dev/null +++ b/zfs-patches/fix-rm-path-in-zfs-share-service.patch @@ -0,0 +1,25 @@ +From 5ed5dcf71824eaee71726dbbefe68e42f9b79938 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= +Date: Thu, 27 Oct 2016 10:18:55 +0200 +Subject: [PATCH] fix rm path in zfs-share.service + +--- + 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 + diff --git a/zfs-patches/series b/zfs-patches/series index 1727f18..adf32c8 100644 --- a/zfs-patches/series +++ b/zfs-patches/series @@ -2,3 +2,4 @@ fix-control.patch add-zfsutils-preinst-postinst.patch fix-dependencies-for-upgrades.patch import-by-disk-id.patch +fix-rm-path-in-zfs-share-service.patch