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

View File

@@ -2784,6 +2784,7 @@ build_container() {
export PCT_OSVERSION="$var_version"
export PCT_DISK_SIZE="$DISK_SIZE"
export IPV6_METHOD="$IPV6_METHOD"
export ENABLE_GPU="$ENABLE_GPU"
# DEV_MODE exports (optional, for debugging)
export BUILD_LOG="$BUILD_LOG"

View File

@@ -2577,8 +2577,8 @@ function setup_gs() {
# ------------------------------------------------------------------------------
function setup_hwaccel() {
# Check if user explicitly disabled GPU in advanced settings
if [[ "${var_gpu:-no}" == "no" ]]; then
msg_info "GPU acceleration disabled by user (var_gpu=no) - skipping setup"
# ENABLE_GPU is exported from build.func
if [[ "${ENABLE_GPU:-no}" == "no" ]]; then
return 0
fi