summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2020-04-23 15:58:59 +0200
committerRaphaël Hertzog <hertzog@debian.org>2020-04-23 15:58:59 +0200
commit047885bf7e5c3f527a44b0be5c73c2d1f027d300 (patch)
tree9afa82b46ae2b25db39388cf73997f20914392fc /functions
parent6cc72509541404dc0af57bf2b29dfaaa1ee3e1a4 (diff)
downloadvyos-live-build-047885bf7e5c3f527a44b0be5c73c2d1f027d300.tar.gz
vyos-live-build-047885bf7e5c3f527a44b0be5c73c2d1f027d300.zip
Keep LB_ARCHITECTURES environment variable for backwards compatibility
Custom hook scripts may use the variable. And conditional package lists can also rely on this variable.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/configuration.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 8e484aeb5..6e8323f38 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -47,6 +47,10 @@ New_configuration ()
LB_ARCHITECTURE="${LB_ARCHITECTURE:-${CURRENT_IMAGE_ARCHITECTURE}}"
export LB_ARCHITECTURE
+ # For backwards compat with custom hooks and conditional includes
+ LB_ARCHITECTURES=${LB_ARCHITECTURE}
+ export LB_ARCHITECTURES
+
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-$(Get_configuration config/build Archive-Areas)}"
LB_ARCHIVE_AREAS="${LB_ARCHIVE_AREAS:-main}"
LB_ARCHIVE_AREAS="$(echo "${LB_ARCHIVE_AREAS}" | tr "," " ")"