mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-13 12:15:03 +00:00
export gpu for hwaccel
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user