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

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-06-20 01:33:49 +01:00
parent 8fed454c06
commit 5bee701f29
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" Echo_warning "No config/ directory; using defaults for all options"
fi fi
if [ "$(pwd)" = "/" ]
then
Echo_error "Cannot build live image from the root directory (/)"
exit 1
fi
# Bootstrapping system # Bootstrapping system
lh_bootstrap ${*} lh_bootstrap ${*}