summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2020-05-21 23:04:07 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-22 01:19:15 +0200
commit00c0650f963308c05b7b3469e7b0a51e8cc5a28d (patch)
treeb9fba9dc8413754e4f5d6bc16d70edc961f77407 /Meta
parent27913154ea7c8f766a27ce0873d878c5d09809ea (diff)
downloadserenity-00c0650f963308c05b7b3469e7b0a51e8cc5a28d.zip
Build: Add Dockerfile
Diffstat (limited to 'Meta')
-rwxr-xr-xMeta/build-image-qemu.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh
index 10ff5384f9..b26fb1838e 100755
--- a/Meta/build-image-qemu.sh
+++ b/Meta/build-image-qemu.sh
@@ -62,8 +62,11 @@ cleanup() {
if [ $use_genext2fs = 0 ] ; then
printf "unmounting filesystem... "
umount mnt || ( sleep 1 && sync && umount mnt )
+ rmdir mnt
+ else
+ rm -rf mnt
fi
- rmdir mnt
+
if [ "$(uname -s)" = "OpenBSD" ]; then
vnconfig -u "$VND"
elif [ "$(uname -s)" = "FreeBSD" ]; then