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>
This commit is contained in:
Robby Workman 2017-12-29 03:49:07 -06:00 committed by Willy Sudiarto Raharjo
parent 2007b9a93e
commit 0e436da449

View file

@ -73,6 +73,7 @@ start()
echo "Exporting ZFS filesystems"
"$ZFS" share -a
mkdir -p $(dirname $LOCKFILE)
touch "$LOCKFILE"
}