Abort build if building from the root directory (/) as this causes misc build failures.

This commit is contained in:
Chris Lamb 2008-06-20 01:33:49 +01:00 committed by Daniel Baumann
parent 9fba09b735
commit 1271828d6d
1 changed files with 6 additions and 0 deletions

View File

@ -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 ${*}