summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-13 19:04:14 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-13 19:04:14 +0100
commit4e65bcbb5b2472227ca59e25fd72a4857324e508 (patch)
tree273547acb76d97dbc3c223d40e1055d7161cbd04 /scripts/build
parent8353cbb3019272468ebe65aa8d93e62fc6a0ad3d (diff)
downloadvyos-live-build-4e65bcbb5b2472227ca59e25fd72a4857324e508.tar.gz
vyos-live-build-4e65bcbb5b2472227ca59e25fd72a4857324e508.zip
Avoid re-populating an already populated configuration tree when using lb config --config.
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/config10
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}" ]