From 600f8c9108ef60d1d23e6fd73b55c46821b8030f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 24 Apr 2021 23:34:41 +0200 Subject: [PATCH] Revert "grml-live: clean up MIRROR_DIRECTORY if provided." This reverts commit c78f58bfee79af61276e3e91457a1b0faa55bbf5. While deleting the bind-mount destination of mirror directories is fine in theory, we end up deleting empty base directories as well, which is unexpected and unwanted behavior. See https://github.com/grml/grml-live/pull/104 for the related discussion, this issue needs further attention yet before we can include this in a new release of grml-live. --- grml-live | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/grml-live b/grml-live index 6107e28c..8b0adfef 100755 --- a/grml-live +++ b/grml-live @@ -180,10 +180,7 @@ umount_all() { fi umount "${CHROOT_OUTPUT}/grml-live/sources/" 2>/dev/null || /bin/true - if [ -n "${MIRROR_DIRECTORY}" ]; then - umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}" - rmdir -p "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}" - fi + [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}" } # }}}