From 7d4a0081d4511ab5370dc070d68e1683c2a355ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Mon, 19 Jul 2021 22:49:42 +0000 Subject: [PATCH] Update util-iso-mount.sh --- lib/util-iso-mount.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/util-iso-mount.sh b/lib/util-iso-mount.sh index cb357d1..1a0234b 100644 --- a/lib/util-iso-mount.sh +++ b/lib/util-iso-mount.sh @@ -61,14 +61,11 @@ mount_fs_net(){ umount_fs(){ if [[ -n ${FS_ACTIVE_MOUNTS[@]} ]]; then - info "active mounts: [%s]" "${FS_ACTIVE_MOUNTS}" - mount - info "overlayfs umount: [%s]" "${FS_ACTIVE_MOUNTS[@]}" - info "proc mounts: [%s]" "$(cat /proc/mounts | awk '{print$2}' | sort -r)" - info "proc mounts (overlay): [%s]" "$(grep overlay /proc/mounts | awk '{print$2}' | sort -r)" if [[ "$(grep rootfs ${FS_ACTIVE_MOUNTS[@]})" ]]; then + info "overlayfs umount: [%s]" "${FS_ACTIVE_MOUNTS[@]}" umount "${FS_ACTIVE_MOUNTS[@]}" else + info "overlayfs umount: [%s]" "$(grep overlay /proc/mounts | awk '{print$2}' | sort -r)" umount -l "$(grep overlay /proc/mounts | awk '{print$2}' | sort -r)" fi unset FS_ACTIVE_MOUNTS