From 43db95a38a60cdcf3d6a5217bdb9633b01176ff0 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 29 Sep 2025 11:55:33 +0200 Subject: [PATCH] Remove redundant uid from device config and update install script Eliminates the unnecessary 'uid=0' parameter from device configuration in GPU passthrough setup for privileged containers. Also updates the viseron install script to remove the target directory argument from the fetch_and_deploy_gh_release call, aligning with changes in its usage. --- install/viseron-install.sh | 2 +- misc/build.func | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/viseron-install.sh b/install/viseron-install.sh index dc4c78ec..317a0d25 100644 --- a/install/viseron-install.sh +++ b/install/viseron-install.sh @@ -51,7 +51,7 @@ if [[ "$CTTYPE" == "0" ]]; then fi msg_ok "Hardware Acceleration Configured" -fetch_and_deploy_gh_release "viseron" "roflcoopter/viseron" "/opt/viseron" +fetch_and_deploy_gh_release "viseron" "roflcoopter/viseron" msg_info "Setting up Python Environment" uv venv --python "python3.13" /opt/viseron/.venv diff --git a/misc/build.func b/misc/build.func index cf4cc7d8..74696ad3 100644 --- a/misc/build.func +++ b/misc/build.func @@ -2534,9 +2534,9 @@ configure_gpu_passthrough() { # Privileged container - use dev entries for WebUI visibility # Use initial GID 104 (render) for renderD*, 44 (video) for card* if [[ "$dev" =~ renderD ]]; then - echo "dev${dev_idx}: $dev,uid=0,gid=104" >>"$LXC_CONFIG" + echo "dev${dev_idx}: $dev,gid=104" >>"$LXC_CONFIG" else - echo "dev${dev_idx}: $dev,uid=0,gid=44" >>"$LXC_CONFIG" + echo "dev${dev_idx}: $dev,gid=44" >>"$LXC_CONFIG" fi dev_idx=$((dev_idx + 1))