Update util-iso-mount.sh

- try different approach
This commit is contained in:
Philip Müller 2021-07-19 21:02:47 +00:00
parent f905232812
commit 343fea66e3

View file

@ -65,7 +65,9 @@ umount_fs(){
mount
info "overlayfs umount: [%s]" "${FS_ACTIVE_MOUNTS[@]}"
info "proc mounts: [%s]" "$(cat /proc/mounts | awk '{print$2}' | sort -r)"
umount -f "${FS_ACTIVE_MOUNTS[@]}"
info "proc mounts (overlay): [%s]" "$(grep overlay /proc/mounts | awk '{print$2}' | sort -r)"
#umount "${FS_ACTIVE_MOUNTS[@]}"
umount -l "$(grep overlay /proc/mounts | awk '{print$2}' | sort -r)"
unset FS_ACTIVE_MOUNTS
rm -rf "${mnt_dir}/work"
fi