From 2e7f7bda90db859e38e21f6fb9ed5b096aee6833 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 3 Jul 2025 10:25:59 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index bd6b9453..68e0865b 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1221,9 +1221,31 @@ EOF fi # VAAPI passthrough for known apps on privileged LXC - VAAPI_APPS="immich Channels Emby ErsatzTV Frigate Jellyfin Plex Scrypted Tdarr Unmanic Ollama FileFlows" + VAAPI_APPS=( + "immich" + "Channels" + "Emby" + "ErsatzTV" + "Frigate" + "Jellyfin" + "Plex" + "Scrypted" + "Tdarr" + "Unmanic" + "Ollama" + "FileFlows" + "Open WebUI" + ) - if [ "$CT_TYPE" == "0" ] && [[ " $VAAPI_APPS " =~ " $APP " ]]; then + is_vaapi_app=false + for vaapi_app in "${VAAPI_APPS[@]}"; do + if [[ "$APP" == "$vaapi_app" ]]; then + is_vaapi_app=true + break + fi + done + + if [ "$CT_TYPE" == "0" ] && [ "$is_vaapi_app" == "true" ]; then echo -e "\n⚙️ VAAPI passthrough configuration for LXC container:" if [[ -e /dev/dri/renderD128 ]]; then read -rp " ➤ /dev/dri/renderD128 found – mount into container? [y/N]: " MOUNT_D128