From 2e8d4e71d4681a9125e888545e7800abaf87867f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Mon, 19 Jul 2021 17:29:57 +0000 Subject: [PATCH] Update util-mount.sh - add more debug info --- lib/util-mount.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/util-mount.sh b/lib/util-mount.sh index caf8e6b..8df6ee8 100644 --- a/lib/util-mount.sh +++ b/lib/util-mount.sh @@ -117,7 +117,7 @@ chroot_mount_partitions(){ } chroot_mount() { - #info "mount: [%s]" "$2" + info "mount: [%s]" "$2" mount "$@" && CHROOT_ACTIVE_MOUNTS=("$2" "${CHROOT_ACTIVE_MOUNTS[@]}") } @@ -161,20 +161,22 @@ chroot_api_mount() { } chroot_part_umount() { + info "active mounts: [%s]" "${CHROOT_ACTIVE_MOUNTS}" + mount info "umount: [%s]" "${CHROOT_ACTIVE_PART_MOUNTS[@]}" - umount -f "${CHROOT_ACTIVE_PART_MOUNTS[@]}" + umount "${CHROOT_ACTIVE_PART_MOUNTS[@]}" unset CHROOT_ACTIVE_PART_MOUNTS } chroot_api_umount() { info "umount: [%s]" "${CHROOT_ACTIVE_MOUNTS[@]}" - umount -f "${CHROOT_ACTIVE_MOUNTS[@]}" + umount "${CHROOT_ACTIVE_MOUNTS[@]}" unset CHROOT_ACTIVE_MOUNTS } chroot_api_efi_umount() { info "umount: [%s]" "${CHROOT_ACTIVE_MOUNTS[@]}" - umount -f "${CHROOT_ACTIVE_MOUNTS[@]}" + umount "${CHROOT_ACTIVE_MOUNTS[@]}" unset CHROOT_ACTIVE_MOUNTS }