summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 98bea64..0116722 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -183,6 +183,9 @@ fi
TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/mkinitcpio.XXXXXX")
declare BUILDROOT=$TMPDIR/root
+# explicitly create the buildroot
+mkdir "$TMPDIR/root"
+
# use preset $PRESET
if [[ $PRESET ]]; then
# allow absolute path to preset file, else resolve it