diff options
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_build b/helpers/lh_build index 7a83558..835a4b7 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 ${*} |