Update util-iso-mount.sh

This commit is contained in:
Philip Müller 2021-07-20 11:30:00 +00:00
parent 6c127f06f8
commit 7bcbc518f1

View file

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