From 3491f532a2b50a3d316649398800cb9729449ec7 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Thu, 4 Jun 2026 23:03:31 +0200 Subject: [PATCH] fix(build): honor GPU_DRIVER from the environment (Sam & Claude) build.cfg hard-set GPU_DRIVER="" , and build.sh sources build.cfg after the environment is already set, so `env GPU_DRIVER=nvidia-590 ./build.sh` was silently clobbered to "" (no NVIDIA branch baked). There is no --gpu-driver flag in build.sh, so the environment is the only way to set it. Use GPU_DRIVER="${GPU_DRIVER:-}" so an env value is honored; default stays "". Verified: env nvidia-590 -> nvidia-590; no env -> "". Replaces the detached-worktree workaround applied during the live build. Co-Authored-By: Claude Opus 4.8 --- build.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.cfg b/build.cfg index 814f4e52..4e2e4641 100644 --- a/build.cfg +++ b/build.cfg @@ -39,9 +39,11 @@ CLAWDIE_REF="${CLAWDIE_REF:-main}" DEFAULT_PKG_BRANCH="latest" # latest or quarterly DEFAULT_DESKTOP="xfce" # operator USB desktop -# GPU driver variant (set at build time via --gpu-driver flag) +# GPU driver variant (set at build time via the GPU_DRIVER environment variable) # intel | amd | nvidia-590 | nvidia-470 | nvidia-390 | vesa | "" (auto-detect) -GPU_DRIVER="" +# Use the :- form so an env value (e.g. `GPU_DRIVER=nvidia-590 ./build.sh`) is +# honored; a plain GPU_DRIVER="" here would clobber the environment. +GPU_DRIVER="${GPU_DRIVER:-}" # Universal NVIDIA lane (opt-in). When YES, the image carries an on-image NVIDIA # pkg repo for all three branches (390/470/580), does NOT bake a single branch, -- 2.45.3