Remove redundant uid from device config and update install script
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

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.
This commit is contained in:
CanbiZ 2025-09-29 11:55:33 +02:00
parent 42c503d0d2
commit 43db95a38a
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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))