summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-20 01:33:49 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-06-20 01:33:49 +0100
commit5bee701f291b4129d4a772d85b16eb05f2aa1b3f (patch)
tree85b8d8a88a5bd617f3fee66986b3894bae87a1ed
parent8fed454c060a4268b6371d3e42f42f130be4e49b (diff)
downloadvyos-live-build-5bee701f291b4129d4a772d85b16eb05f2aa1b3f.tar.gz
vyos-live-build-5bee701f291b4129d4a772d85b16eb05f2aa1b3f.zip
Abort build if building from the root directory (/) as this causes misc build failures.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-rwxr-xr-xhelpers/lh_build6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_build b/helpers/lh_build
index 7a8355841..835a4b77f 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 ${*}