summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-02-17 16:11:50 +0100
committerDaniel Baumann <daniel@debian.org>2010-02-20 17:45:46 +0100
commit6b75ba61598decdeb2d75e5b943017924246772e (patch)
treec3a513644b338811beecaaa473c499dc58663c2f /helpers
parenta8e123d4697e587da728768fab5d4a0e3cbd5b65 (diff)
downloadvyos-live-build-6b75ba61598decdeb2d75e5b943017924246772e.tar.gz
vyos-live-build-6b75ba61598decdeb2d75e5b943017924246772e.zip
Automatically populating config tree when having auto/config present and lh build is called without having lh config run before.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/build b/helpers/build
index 835ad8e2c..52400fa3a 100755
--- a/helpers/build
+++ b/helpers/build
@@ -12,6 +12,13 @@ set -e
# Including common functions
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
+# Automatically populating config tree
+if [ -x auto/config ] && [ ! -e .stage/config ]
+then
+ Echo_message "Automatically populating config tree."
+ lh config
+fi
+
# Read meta config
if [ "${1}" != "noautoconfig" ] && [ -x auto/build ]
then