export gpu for hwaccel

This commit is contained in:
MickLesk
2026-01-06 20:15:22 +01:00
parent 769796ca54
commit 0d9e3c56e0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -2784,6 +2784,7 @@ build_container() {
export PCT_OSVERSION="$var_version" export PCT_OSVERSION="$var_version"
export PCT_DISK_SIZE="$DISK_SIZE" export PCT_DISK_SIZE="$DISK_SIZE"
export IPV6_METHOD="$IPV6_METHOD" export IPV6_METHOD="$IPV6_METHOD"
export ENABLE_GPU="$ENABLE_GPU"
# DEV_MODE exports (optional, for debugging) # DEV_MODE exports (optional, for debugging)
export BUILD_LOG="$BUILD_LOG" export BUILD_LOG="$BUILD_LOG"
+2 -2
View File
@@ -2577,8 +2577,8 @@ function setup_gs() {
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
function setup_hwaccel() { function setup_hwaccel() {
# Check if user explicitly disabled GPU in advanced settings # Check if user explicitly disabled GPU in advanced settings
if [[ "${var_gpu:-no}" == "no" ]]; then # ENABLE_GPU is exported from build.func
msg_info "GPU acceleration disabled by user (var_gpu=no) - skipping setup" if [[ "${ENABLE_GPU:-no}" == "no" ]]; then
return 0 return 0
fi fi