X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=etc%2Finit.d%2Fzfs.lunar;h=bdc461af861b258dfc9dda6ebee254e78788e580;hb=7f4afd300b753ee7e0ce1f8d12c098119193001b;hp=4512151c2b664dd56aea176cee0596c08b4d8595;hpb=2a005961a48e748632e96272915192dab6ce9401;p=zfs.git diff --git a/etc/init.d/zfs.lunar b/etc/init.d/zfs.lunar index 4512151..bdc461a 100644 --- a/etc/init.d/zfs.lunar +++ b/etc/init.d/zfs.lunar @@ -31,16 +31,24 @@ case $1 in # do, thus i'm not breaking here. fi - # mount the filesystems - while IFS= read -r -d $'\n' dev; do - mdev=$(echo "$dev" | awk '{ print $1; }') - echo -n "mounting $mdev..." - if `zfs mount $mdev`; then - echo -e "done"; - else - echo -e "failed"; - fi - done < <(zfs list -H); + # mount the filesystems + while IFS= read -r -d $'\n' dev; do + mdev=$(echo "$dev" | awk '{ print $1; }') + echo -n "mounting $mdev..." + 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";