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 <felix.moessbauer@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
		
				
					committed by
					
						 Jan Kiszka
						Jan Kiszka
					
				
			
			
				
	
			
			
			
						parent
						
							7215e58eab
						
					
				
				
					commit
					1a2de8daa7
				
			| @@ -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.:          | | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user