From 1f58768749ba34d6fbc1764d47d510a762077f54 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Paul=20H=C3=A4nsch?= <paul@plutz.net>
Date: Tue, 15 Oct 2019 16:09:05 +0200
Subject: [PATCH] set up mount dir before img_mount

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 274d1c7..b683f13 100644
--- a/Makefile
+++ b/Makefile
@@ -415,7 +415,7 @@ endif
 
 _mount: _mount_root _mount_boot
 
-_img_mount:
+_img_mount: ${CFGROOT}
 	mount -o loop,offset="$$((${BOOT_MB} + 2))"M,sizelimit=${ROOT_MB}M \
 	  -t ext4 "$${VOLUME}" "$${CFGROOT}"
 	chmod 755 "$${CFGROOT}"
-- 
2.39.5