From cc96e883fa7ca0870b2428cda94aa0054dc02642 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 7 Dec 2023 13:52:36 -0500 Subject: [PATCH] the first `rmdir "$MNTPOINT"` needs `|| true` because it will not always work will not work in cases where /dev etc is still mounted inside the chroot --- grml-debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-debootstrap b/grml-debootstrap index 29ae03f..bac28b0 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -258,7 +258,7 @@ cleanup() { # Remove temporary mountpoint again if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then if [ -d "$MNTPOINT" ] ; then - rmdir "$MNTPOINT" + rmdir "$MNTPOINT" || true fi fi -- 2.1.4