From aaa209a05629620de95813d7c6114638f47a4534 Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Fri, 2 Jan 2026 10:48:39 -0500 Subject: [PATCH] Use 'umount -nR' regardless of OS --- zfs.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 \