# Provides: zfs
# Required-Start: $local_fs
# Required-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
# Should-Stop:
# Short-Description: Mount/umount the zfs filesystems
# Description: ZFS is an advanced filesystem designed to simplify managing
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
return 4
fi
+ # Delay until all required block devices are present.
+ udevadm settle
+
# Load the zfs module stack
/sbin/modprobe zfs
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