docker: make `DOCKER_ARMBIAN_BASE_IMAGE` readonly after resolving `DOCKER_ARMBIAN_BASE_COORDINATE_PREFIX`

- otherwise stuff (eg extensions) might be tempted to change it, but that will only lead to pain
This commit is contained in:
Ricardo Pardini 2025-11-12 23:33:40 +01:00
parent ebc129fa52
commit e199d1f59e
No known key found for this signature in database
GPG Key ID: 3B5E3FE39EC7EDE9
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ function docker_cli_prepare() {
display_alert "Using prebuilt Armbian image as base for '${wanted_os_tag}-${DOCKER_WANTED_RELEASE}'" "DOCKER_ARMBIAN_BASE_IMAGE: ${DOCKER_ARMBIAN_BASE_IMAGE}" "info"
fi
# Make DOCKER_ARMBIAN_BASE_IMAGE readonly; no changes allowed after this point.
declare -g -r DOCKER_ARMBIAN_BASE_IMAGE="${DOCKER_ARMBIAN_BASE_IMAGE}"
#############################################################################################################
# Stop here if Docker can't be used at all.
if ! is_docker_ready_to_go; then