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:
parent
8fed454c06
commit
5bee701f29
|
@ -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 ${*}
|
||||
|
||||
|
|
Loading…
Reference in New Issue