From d7237822dc20dcffd897301a86d229fe1f5c22ec Mon Sep 17 00:00:00 2001 From: Lasath Fernando Date: Thu, 16 Jan 2025 15:18:44 +0000 Subject: [PATCH] Fix error when building locally multiple times If the mount directories are left over from a previous run, it currently tries to create them again and fails. This fixes that. --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 87250a7..c4d4b84 100755 --- a/build.sh +++ b/build.sh @@ -116,7 +116,7 @@ fallocate -l 260M esp.raw mkfs.fat -F 32 esp.raw # Mount it to esp.raw.mnt. -mkdir esp.raw.mnt +mkdir -p esp.raw.mnt # The -p prevents failure if directory already exists mount esp.raw esp.raw.mnt # Copy everything from /efi into esp.raw.mnt. @@ -136,7 +136,7 @@ fallocate -l 8G root.raw mkfs.btrfs -L KDELinuxLive root.raw # Mount it to root.raw.mnt. -mkdir root.raw.mnt +mkdir -p root.raw.mnt # The -p prevents failure if directory already exists mount -o compress-force=zstd:15 root.raw root.raw.mnt # Change to root.raw.mnt since we'll be working there.