Update util-iso-mount.sh

This commit is contained in:
Philip Müller 2021-07-20 09:40:31 +00:00
parent 9e9b793aab
commit 9a99817285

View file

@ -73,11 +73,19 @@ umount_fs(){
for i in "${FS_ACTIVE_MOUNTS[@]}" for i in "${FS_ACTIVE_MOUNTS[@]}"
do do
cat /proc/mounts cat /proc/mounts
info "umount: [%s]" "$i"
check_umount $i check_umount $i
cat /proc/mounts cat /proc/mounts
done done
unset FS_ACTIVE_MOUNTS unset FS_ACTIVE_MOUNTS
rm -rf "${mnt_dir}/work" rm -rf "${mnt_dir}/work"
fi fi
for i in "$(grep ${work_dir} /proc/mounts | awk '{print$2}' | sort -r)"
do
cat /proc/mounts
info "umount: [%s]" "$i"
check_umount $i
cat /proc/mounts
done
cat /proc/mounts cat /proc/mounts
} }