fix #1184: zfs-share.service has wrong path to 'rm' command

This commit is contained in:
Fabian Grünbichler 2016-10-27 11:25:24 +02:00
parent 3474a9b46b
commit 49f86653f1
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 5ed5dcf71824eaee71726dbbefe68e42f9b79938 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
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

View File

@ -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