From dc66c950a19879fb8b20f13f94e4cb37f6217a12 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 21 Feb 2026 22:42:00 +1300 Subject: [PATCH] Update 2 files --- Dockerfile.dropshell-build | 2 ++ source/agent-remote/hostinfo.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dropshell-build b/Dockerfile.dropshell-build index d073459..9d9cd2e 100644 --- a/Dockerfile.dropshell-build +++ b/Dockerfile.dropshell-build @@ -38,8 +38,10 @@ RUN --mount=type=cache,target=/ccache \ ${CMAKE_TOOLCHAIN_FILE:+-DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE} # Build project (ccache will help here when only some files change) +# Remove stale autogen files to force dehydrate to regenerate from current agent sources RUN --mount=type=cache,target=/ccache \ --mount=type=cache,target=/build \ + rm -f /app/src/autogen/_agent-remote.* /app/src/autogen/_agent-local.* && \ cmake --build /build # Copy the built executables to a regular directory for the final stage diff --git a/source/agent-remote/hostinfo.sh b/source/agent-remote/hostinfo.sh index 2058481..45e9618 100755 --- a/source/agent-remote/hostinfo.sh +++ b/source/agent-remote/hostinfo.sh @@ -71,7 +71,7 @@ fi # GPU list (may have 0, 1, or multiple) GPU_JSON="[]" if command -v lspci &>/dev/null; then - GPU_LINES=$(lspci 2>/dev/null | grep -i 'vga\|3d\|display' | sed 's/^[^ ]* //' || true) + GPU_LINES=$(lspci 2>/dev/null | grep -i 'vga\|3d\|display' | sed 's/^[^ ]* //; s/VGA compatible controller: //; s/3D controller: //; s/Display controller: //' || true) if [ -n "$GPU_LINES" ]; then GPU_JSON="[" first=true