diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-13 19:04:14 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:02 +0200 |
commit | e2e5636744687d28e0b4e6fdf6e1b98547db3507 (patch) | |
tree | 1d5848bb1bb83c966f9d043a980207fd5bd7c9ca /scripts/build | |
parent | 5beadcd563cf921e287a8ef4941896576b6a7aa3 (diff) | |
download | vyos-live-build-e2e5636744687d28e0b4e6fdf6e1b98547db3507.tar.gz vyos-live-build-e2e5636744687d28e0b4e6fdf6e1b98547db3507.zip |
Avoid re-populating an already populated configuration tree when using lb config --config.
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/config | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/build/config b/scripts/build/config index b563ee955..33429bb8d 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -872,6 +872,16 @@ then _CONFIG="" fi +if [ -e .build/config ] && [ -n "${_CONFIG}" ] +then + if [ "${1}" != "noauto" ] + then + Echo_message "Ignoring --config ${_CONFIG}: ${PWD} is already a live-build configuration tree" + fi + + _CONFIG="" +fi + if [ -n "${_CONFIG}" ] then if [ -e "${_CONFIG}" ] || [ -e "/usr/share/live/images/${_CONFIG}" ] |