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:
parent
ef17278a8a
commit
9bec1992e1
1 changed files with 7 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue