From e2e8d5a2ee60a53aca00bde71d9552697d6e73cc Mon Sep 17 00:00:00 2001 From: Suraj Date: Sun, 15 Mar 2026 22:30:25 +0530 Subject: [PATCH] build: allow overriding docker UID for rootless environments Fixes: Dasharo/dasharo-issues#1197 --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3493287b7a2..b577b1bfbce 100755 --- a/build.sh +++ b/build.sh @@ -45,9 +45,10 @@ usage() { DASHARO_SDK=${DASHARO_SDK:-"ghcr.io/dasharo/dasharo-sdk:v1.6.0"} BUILD_TIMELESS=${BUILD_TIMELESS:-0} AIRGAP=${AIRGAP:-0} +DOCKER_UID=${DOCKER_UID:-$UID} function sdk_run { - docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \ + docker run --rm -t -u $DOCKER_UID -v $PWD:/home/coreboot/coreboot \ -v $HOME/.ssh:/home/coreboot/.ssh \ -e BUILD_TIMELESS=${BUILD_TIMELESS} \ -w /home/coreboot/coreboot ${DASHARO_SDK} \ @@ -219,7 +220,7 @@ function build_novacustom_v5x0tu { wget -O novacustom_v54x_mtl_v0.9.0.rom https://dl.3mdeb.com/open-source-firmware/Dasharo/novacustom_v54x_mtl/v0.9.0/novacustom_v54x_mtl_v0.9.0.rom # Extract and transfer LAN ROM blob - docker run --rm -t -u $UID -v $PWD:/home/coreboot/coreboot \ + docker run --rm -t -u $DOCKER_UID -v $PWD:/home/coreboot/coreboot \ -v $HOME/.ssh:/home/coreboot/.ssh \ -w /home/coreboot/coreboot ${DASHARO_SDK} \ /bin/bash -c "make -C util/cbfstool && \