This commit is contained in:
2019-08-02 12:13:53 -07:00
parent 10f2e69e1d
commit b094e07be8
+1 -1
View File
@@ -55,7 +55,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