diff --git a/common.d/functions.sh b/common.d/functions.sh index c446026..6aba63e 100644 --- a/common.d/functions.sh +++ b/common.d/functions.sh @@ -91,9 +91,9 @@ cleanup() for d in ./tmp/*/; do log "Unmounting $d" detach_chroot "$d" - umount "$d/boot/simpleinit" 2> /dev/null - umount "$d/boot/efi" 2> /dev/null - umount ./tmp/tmp.* 2> /dev/null + umount "$d/boot/simpleinit" + umount "$d/boot/efi" + umount "$d" rm -d "$d" done exit 0