diff --git a/zfs.sh b/zfs.sh index 9b709f7..0cb5f03 100755 --- a/zfs.sh +++ b/zfs.sh @@ -222,13 +222,9 @@ if [[ "${1}" == '--key' ]]; then fi if [[ "${1}" == '--unmount' ]]; then - mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -I {} umount -lf {} - - if [[ "${ID}" == 'fedora' ]]; then - umount \ - -nR \ - /mnt - fi + umount \ + -nR \ + /mnt zpool \ export \