Use 'umount -nR' regardless of OS

This commit is contained in:
2026-01-02 10:48:39 -05:00
parent 38dc3ab73a
commit aaa209a056

4
zfs.sh
View File

@@ -222,13 +222,9 @@ if [[ "${1}" == '--key' ]]; then
fi fi
if [[ "${1}" == '--unmount' ]]; then if [[ "${1}" == '--unmount' ]]; then
mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -I {} umount -lf {}
if [[ "${ID}" == 'fedora' ]]; then
umount \ umount \
-nR \ -nR \
/mnt /mnt
fi
zpool \ zpool \
export \ export \