git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated init scripts to enable automatic sharing of ZFS datasets.
[zfs.git]
/
etc
/
init.d
/
zfs.lsb
diff --git
a/etc/init.d/zfs.lsb
b/etc/init.d/zfs.lsb
index
6c0a743
..
ce541a9
100644
(file)
--- a/
etc/init.d/zfs.lsb
+++ b/
etc/init.d/zfs.lsb
@@
-32,8
+32,8
@@
RETVAL=0
LOCKFILE=/var/lock/zfs
CACHEFILE=/etc/zfs/zpool.cache
LOCKFILE=/var/lock/zfs
CACHEFILE=/etc/zfs/zpool.cache
-ZPOOL=/
usr/
sbin/zpool
-ZFS=/
usr/
sbin/zfs
+ZPOOL=/sbin/zpool
+ZFS=/sbin/zfs
[ -x $ZPOOL ] || exit 1
[ -x $ZFS ] || exit 2
[ -x $ZPOOL ] || exit 1
[ -x $ZFS ] || exit 2
@@
-74,6
+74,10
@@
start()
log_begin_msg "Mounting ZFS filesystems"
$ZFS mount -a
log_end_msg $?
log_begin_msg "Mounting ZFS filesystems"
$ZFS mount -a
log_end_msg $?
+
+ log_begin_msg "Exporting ZFS filesystems"
+ $ZFS share -a
+ log_end_msg $?
fi
touch $LOCKFILE
fi
touch $LOCKFILE