From 1a2de8daa7a5f72becd827e22eebf6abb7ffad4f Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Tue, 15 Nov 2022 10:53:56 +0100 Subject: [PATCH] forward DISTRO_APT_PREMIRRORS environment variable This patch forwards the DISTRO_APT_PREMIRRORS environment variable into the container when using the kas-container script. This variable is commonly used to externally set mirrors for debian apt, e.g. in a CI environment. Signed-off-by: Felix Moessbauer Signed-off-by: Jan Kiszka --- docs/command-line.rst | 2 +- kas-container | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/command-line.rst b/docs/command-line.rst index b6c3941..401982d 100644 --- a/docs/command-line.rst +++ b/docs/command-line.rst @@ -35,7 +35,7 @@ Environment variables | ``KAS_TASK`` | | +--------------------------+--------------------------------------------------+ | ``KAS_PREMIRRORS`` | Specifies alternatives for repo URLs. Just like | -| | bitbake ``PREMIRRORS``, this variable consists | +| ``DISTRO_APT_PREMIRRORS``| bitbake ``PREMIRRORS``, this variable consists | | | of new-line separated entries. Each entry | | | defines a regular expression to match a URL and, | | | space-separated, its replacement. E.g.: | diff --git a/kas-container b/kas-container index bc52863..65a05b5 100755 --- a/kas-container +++ b/kas-container @@ -466,7 +466,7 @@ if [ -n "${KAS_REPO_REF_DIR}" ]; then fi for var in TERM KAS_DISTRO KAS_MACHINE KAS_TARGET KAS_TASK \ - KAS_PREMIRRORS BB_NUMBER_THREADS PARALLEL_MAKE; do + KAS_PREMIRRORS DISTRO_APT_PREMIRRORS BB_NUMBER_THREADS PARALLEL_MAKE; do if [ -n "$(eval echo \$${var})" ]; then set -- "$@" -e "${var}=$(eval echo \"\$${var}\")" fi