diff --git a/scripts/mkimage.sh b/scripts/mkimage.sh
index 6ad920043431f38d8db72c2d5d883b5e83da8929..983a2ec47d418faf89fb479c02c86a45c5a12ddf 100644
--- a/scripts/mkimage.sh
+++ b/scripts/mkimage.sh
@@ -219,6 +219,8 @@ req_arch=${req_arch:-${default_arch}}
 [ "$req_arch" != "all" ] || req_arch="${all_arch}"
 [ "$req_profiles" != "all" ] || req_profiles="${all_profiles}"
 
+mkdir -p "$OUTDIR"
+
 # get abuild pubkey used to sign the apkindex
 # we need inject this to the initramfs or we will not be able to use the
 # boot repository