From b25aea86a00b7e1f5b4ef26289190866f256d521 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 3 Jul 2025 10:34:37 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index 68e0865b..c1e96e84 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1245,8 +1245,12 @@ EOF fi done - if [ "$CT_TYPE" == "0" ] && [ "$is_vaapi_app" == "true" ]; then + if [ "$CT_TYPE" == "0" ] || [ "$is_vaapi_app" == "true" ]; then echo -e "\n⚙️ VAAPI passthrough configuration for LXC container:" + + if [ "$CT_TYPE" != "0" ]; then + echo "⚠️ Container is unprivileged – VAAPI passthrough may not work depending on host configuration." + fi if [[ -e /dev/dri/renderD128 ]]; then read -rp " ➤ /dev/dri/renderD128 found – mount into container? [y/N]: " MOUNT_D128 if [[ "$MOUNT_D128" =~ ^[Yy]$ ]]; then