summaryrefslogtreecommitdiff
path: root/helpers/lh_build
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-20 01:33:49 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:36 +0100
commit1271828d6d5459403a44a58bc56f12c3c6b9c388 (patch)
tree85b8d8a88a5bd617f3fee66986b3894bae87a1ed /helpers/lh_build
parent9fba09b73503eacbee31639e9aac11a87d4066ab (diff)
downloadlive-build-1271828d6d5459403a44a58bc56f12c3c6b9c388.zip
live-build-1271828d6d5459403a44a58bc56f12c3c6b9c388.tar.gz
Abort build if building from the root directory (/) as this causes misc build failures.
Diffstat (limited to 'helpers/lh_build')
-rwxr-xr-xhelpers/lh_build6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_build b/helpers/lh_build
index 7a83558..835a4b7 100755
--- a/helpers/lh_build
+++ b/helpers/lh_build
@@ -29,6 +29,12 @@ then
Echo_warning "No config/ directory; using defaults for all options"
fi
+if [ "$(pwd)" = "/" ]
+then
+ Echo_error "Cannot build live image from the root directory (/)"
+ exit 1
+fi
+
# Bootstrapping system
lh_bootstrap ${*}