Updated init scripts to enable automatic sharing of ZFS datasets.
[zfs.git] / etc / init.d / zfs.lunar
index c77b2b7..bdc461a 100644 (file)
@@ -42,6 +42,14 @@ case $1 in
       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
+
 
   ;;