This commit is contained in:
CanbiZ 2025-07-09 15:24:54 +02:00
parent 9953026207
commit 58104cc743

View File

@ -1241,6 +1241,7 @@ EOF
"Ollama" "Ollama"
"FileFlows" "FileFlows"
"Open WebUI" "Open WebUI"
"Debian"
) )
is_vaapi_app=false is_vaapi_app=false
@ -1311,6 +1312,16 @@ EOF
fi fi
fi fi
fi fi
if [ "$CT_TYPE" == "1" ] && [ "$is_vaapi_app" == "true" ]; then
if [[ -e /dev/dri/card0 ]]; then
echo "dev0: /dev/dri/card0,gid=44" >>"$LXC_CONFIG"
elif [[ -e /dev/dri/card1 ]]; then
echo "dev0: /dev/dri/card1,gid=44" >>"$LXC_CONFIG"
fi
if [[ -e /dev/dri/renderD128 ]]; then
echo "dev1: /dev/dri/renderD128,gid=104" >>"$LXC_CONFIG"
fi
fi
# TUN device passthrough # TUN device passthrough
if [ "$ENABLE_TUN" == "yes" ]; then if [ "$ENABLE_TUN" == "yes" ]; then