X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=etc%2Finit.d%2Fzfs.lunar;h=bdc461af861b258dfc9dda6ebee254e78788e580;hb=1ef5e8296a07a0d208d0663ae966c8b0206f7e6a;hp=a6ec5c4ddc52abae762bcd59f30add2b3b399f4f;hpb=0f4524cca43b1718d54970fcaf0201541733903c;p=zfs.git diff --git a/etc/init.d/zfs.lunar b/etc/init.d/zfs.lunar index a6ec5c4..bdc461a 100644 --- a/etc/init.d/zfs.lunar +++ b/etc/init.d/zfs.lunar @@ -35,13 +35,21 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1; }') echo -n "mounting $mdev..." - if `zfs mount $mdev`; then + if zfs mount $mdev; then echo -e "done"; else echo -e "failed"; fi done < <(zfs list -H); + # export the filesystems + echo -n "exporting ZFS filesystems..." + if zfs share -a; then + echo -e "done"; + else + echo -e "failed"; + fi + ;; @@ -52,7 +60,7 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1 }'); echo -n "umounting $mdev..."; - if `zfs umount $mdev`; then + if zfs umount $mdev; then echo -e "done"; else echo -e "failed";