aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2017-12-29 03:49:07 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-06 06:56:00 +0700
commit0e436da449a2942ab9b808c3bf775dc47a647dd7 (patch)
tree880e53a60bf5ee2260c7bdf47ba2345cb4ef2f45
parent2007b9a93e07c2e674db37fe1216b979d4b3356c (diff)
system/zfs-on-linux: Create /var/lock/zfs before lockfile
This is for people who have /var/lock on tmpfs or some other non-persistent-across-reboots filesystem. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--system/zfs-on-linux/rc.zfs1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/zfs-on-linux/rc.zfs b/system/zfs-on-linux/rc.zfs
index 7d818279cec1..7df205790849 100644
--- a/system/zfs-on-linux/rc.zfs
+++ b/system/zfs-on-linux/rc.zfs
@@ -73,6 +73,7 @@ start()
echo "Exporting ZFS filesystems"
"$ZFS" share -a
+ mkdir -p $(dirname $LOCKFILE)
touch "$LOCKFILE"
}