Abort build if building from the root directory (/) as this causes misc build failures.
This commit is contained in:
parent
9fba09b735
commit
1271828d6d
|
@ -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