firstboot/clawdie-shell-gpu.sh: Add cloud target bypass

Add early return for cloud deployments before any GPU detection logic.
Cloud VMs have no real GPU hardware, so skip pciconf detection entirely.
Mark [GPU] COMPLETE in progress file and return cleanly.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Sam & Claude 2026-03-24 01:50:43 +00:00 committed by 123kupola
parent ef17278a8a
commit 9bec1992e1

View file

@ -28,6 +28,13 @@ clawdie_shell_gpu_detect() {
log_msg "[gpu] Starting GPU detection"
# Cloud target: VMs have no real GPU — skip detection entirely
if [ "${TARGET:-baremetal}" = "cloud" ]; then
log_msg "[gpu] Cloud target — skipping GPU detection"
echo "[GPU] COMPLETE" >> "$PROGRESS_FILE"
return 0
fi
# If GPU_DRIVER was pre-baked at ISO build time, skip live pciconf detection
if [ -n "${GPU_DRIVER:-}" ]; then
log_msg "[gpu] GPU_DRIVER pre-baked: $GPU_DRIVER — skipping pciconf detection"