This commit is contained in:
2019-08-02 12:08:01 -07:00
parent 1a981e96eb
commit 6558be3494
+1 -1
View File
@@ -54,7 +54,7 @@ fi
echo "" echo ""
echo "Unbinding mounts..." echo "Unbinding mounts..."
errors=$(mount | grep -v zfs | tac | awk '/\/mnt/ {print \$3}' | xargs -i{} umount -lf {} 2>&1 1>/dev/null && zpool export -a 2>&1 1>/dev/null) errors=$(mount | grep -v zfs | tac | awk '/\\/mnt/ {print \$3}' | xargs -i{} umount -lf {} 2>&1 1>/dev/null && zpool export -a 2>&1 1>/dev/null)
if ! [ "$?" = "0" ]; then if ! [ "$?" = "0" ]; then
echo "Failed to unbind mounts - $errors" echo "Failed to unbind mounts - $errors"
exit 4 exit 4