summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-02-02 14:26:31 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-02-02 14:26:31 +0000
commit2b3ba5b2a64c4bf059e2281f953cfd6f18fbaf1c (patch)
tree132dba088f3613e05d9589502962e1a82a01cd3b /build.sh
parentfbe448ccdc995d295d24c7596e5f0ef62cc2488f (diff)
parent724820051c400f9554d7fa311e7fc378bf598282 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index bcfdeb6..f743e2a 100755
--- a/build.sh
+++ b/build.sh
@@ -133,7 +133,7 @@ run_stage(){
done
fi
- if [ "${USE_QCOW2}" = "1" ]; then
+ if [ "${USE_QCOW2}" = "1" ]; then
unload_qimage
else
# make sure we are not umounting during export-image stage
@@ -155,6 +155,14 @@ if [ "$(id -u)" != "0" ]; then
fi
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+
+if [[ $BASE_DIR = *" "* ]]; then
+ echo "There is a space in the base path of pi-gen"
+ echo "This is not a valid setup supported by debootstrap."
+ echo "Please remove the spaces, or move pi-gen directory to a base path without spaces" 1>&2
+ exit 1
+fi
+
export BASE_DIR
if [ -f config ]; then
@@ -369,7 +377,7 @@ for EXPORT_DIR in ${EXPORT_DIRS}; do
else
run_stage
- fi
+ fi
if [ "${USE_QEMU}" != "1" ]; then
if [ -e "${EXPORT_DIR}/EXPORT_NOOBS" ]; then
# shellcheck source=/dev/null