From 3aea2de999c835685b3168bccf21be2af4e03fb4 Mon Sep 17 00:00:00 2001 From: Jesse R Codling Date: Tue, 14 Oct 2025 12:50:50 -0400 Subject: [PATCH] Add needed volume mount opts for Docker/Podman It hasn't been an issue for Docker because their defaults didn't conflict, but Podman mounts volumes with nodev (and formerly noexec) by default, which would break the build. Adding `dev` and `exec` to the volume mount options ensures the needed setting whatever the defaults. --- lib/functions/host/docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/host/docker.sh b/lib/functions/host/docker.sh index 198e8c261c..ff08c87c1e 100644 --- a/lib/functions/host/docker.sh +++ b/lib/functions/host/docker.sh @@ -503,7 +503,7 @@ function docker_cli_prepare_launch() { # type=volume, without source=, is an anonymous volume -- will be auto cleaned up together with the container; # this could also be a type=tmpfs if you had enough ram - but armbian already does tmpfs for you if you # have enough RAM (inside the container) so don't bother. - DOCKER_ARGS+=("--mount" "type=volume,destination=${DOCKER_ARMBIAN_TARGET_PATH}/${MOUNT_DIR}") + DOCKER_ARGS+=("--mount" "type=volume,destination=${DOCKER_ARMBIAN_TARGET_PATH}/${MOUNT_DIR},dev,exec") ;; bind) display_alert "Mounting" "bind mount for '${MOUNT_DIR}'" "debug" @@ -512,7 +512,7 @@ function docker_cli_prepare_launch() { ;; namedvolume) display_alert "Mounting" "named volume id '${volume_id}' for '${MOUNT_DIR}'" "debug" - DOCKER_ARGS+=("--mount" "type=volume,source=armbian-${volume_id},destination=${DOCKER_ARMBIAN_TARGET_PATH}/${MOUNT_DIR}") + DOCKER_ARGS+=("--mount" "type=volume,source=armbian-${volume_id},destination=${DOCKER_ARMBIAN_TARGET_PATH}/${MOUNT_DIR},dev,exec") ;; *) display_alert "Unknown Mountpoint Type" "unknown volume type '${docker_kind}' for '${MOUNT_DIR}'" "err"