From e199d1f59e73e98bc2388ce8fe4346714ecea6ab Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 12 Nov 2025 23:33:40 +0100 Subject: [PATCH] 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 --- lib/functions/host/docker.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/functions/host/docker.sh b/lib/functions/host/docker.sh index 198e8c261c59..cfa421ee9ba0 100644 --- a/lib/functions/host/docker.sh +++ b/lib/functions/host/docker.sh @@ -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