diff options
author | Daniel Baumann <daniel@debian.org> | 2012-05-31 13:15:18 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-05-31 13:15:18 +0200 |
commit | 7ce43cfc16a44cd1cf2cc8ca023bbc771c26dead (patch) | |
tree | eb70d9b437a818b1e6b672df02981cad60917e79 /scripts | |
parent | 3eb2b243cce91885ba6306ca22c0b6581312ba3f (diff) | |
download | vyos-live-build-7ce43cfc16a44cd1cf2cc8ca023bbc771c26dead.tar.gz vyos-live-build-7ce43cfc16a44cd1cf2cc8ca023bbc771c26dead.zip |
Allowing to inject variables through config/environment.binary into the binary environment.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/lb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/build/lb b/scripts/build/lb index a0e622086..ee8bad07b 100755 --- a/scripts/build/lb +++ b/scripts/build/lb @@ -42,6 +42,13 @@ case "${1}" in COMMAND="lb_${1}" shift + if [ -e config/environment.binary ] + then + ENV="$(cat config/environment.binary)" + else + ENV="" + fi + if [ -x "${LB_BASE}/scripts/build/${COMMAND}" ] then SCRIPT="${LB_BASE}/scripts/build/${COMMAND}" @@ -57,6 +64,6 @@ case "${1}" in fi Echo "[%s] %s" "$(date +'%F %T')" "${COMMAND} ${*}" - LB=1 exec "${SCRIPT}" "${@}" + LB=1 ${ENV} exec "${SCRIPT}" "${@}" ;; esac |