15 Commits

Author SHA1 Message Date
CanbiZ
82c6e6e6fb Refactor GPU and USB passthrough setup in container scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduced a unified gpu_inside_setup function in build.func to handle VAAPI and NVIDIA userland installation inside containers. Replaced bracket conditionals with if statements in passthrough.func for improved readability and maintainability, and made minor logic clarifications for privileged container checks.
2025-09-23 13:51:46 +02:00
CanbiZ
a17aa696b6 Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-23 13:28:11 +02:00
CanbiZ
a185f8ac51 Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 14:55:06 +02:00
CanbiZ
176f86de5d Auto-select VAAPI device if only one is available
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Improves the vaapi_select_and_apply function to automatically select the VAAPI device when only one is detected, bypassing the whiptail selection dialog. This streamlines the user experience by reducing unnecessary prompts.
2025-09-22 14:48:40 +02:00
CanbiZ
dc45da17fe Add GPU app check and normalize GPU app list
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduces the _is_gpu_app function to check if an app benefits from GPU passthrough, and updates the GPU app list to use lowercase names for consistency. The select_hw_passthrough function now only proceeds for GPU apps or when CTTYPE is 0.
2025-09-22 14:33:30 +02:00
CanbiZ
020f55e26c Auto-select GPU passthrough when only one option
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Improves the select_hw_passthrough function to automatically select the available GPU passthrough option if only one is detected, instead of prompting the user. This streamlines the user experience when only a single GPU type is present.
2025-09-22 14:30:16 +02:00
CanbiZ
da1c78e295 Refactor GPU passthrough selection and setup logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces direct USB and GPU passthrough configuration in build.func with a unified select_hw_passthrough function. Refactors passthrough.func to add interactive selection for VAAPI and NVIDIA devices, streamlines device detection, and updates userland installation functions for both VAAPI and NVIDIA. Cleans up and simplifies device mapping and group ID logic.
2025-09-22 14:27:21 +02:00
CanbiZ
ddf5781e55 Refactor VAAPI and NVIDIA passthrough setup for LXC
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Consolidates and simplifies VAAPI and NVIDIA passthrough logic by introducing unified GPU app detection and moving userland package installation into dedicated *_inside_setup functions. Updates build.func to use new function names and ensures setup is only performed for relevant apps and non-Alpine containers. Improves maintainability and clarity of passthrough.func.
2025-09-22 14:09:59 +02:00
CanbiZ
821c4f36f6 Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 13:59:56 +02:00
CanbiZ
333ac1edcd Automate VAAPI and NVIDIA setup inside LXC containers
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Added direct installation of VAAPI and NVIDIA drivers inside LXC containers during setup, removing reliance on custom in-container scripts. The process now ensures required packages are installed and user permissions are set, improving automation and compatibility for supported distributions.
2025-09-22 13:59:34 +02:00
CanbiZ
d1258c02ac Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 13:42:27 +02:00
CanbiZ
5437324458 Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 13:22:19 +02:00
CanbiZ
44a89c7cea Update passthrough.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 13:20:33 +02:00
CanbiZ
50a2b06c76 Add host-side passthrough logic for VAAPI and NVIDIA in LXC
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduces passthrough.func, a Bash script to manage host-side passthrough configuration for VAAPI and NVIDIA devices in LXC containers. The script provides functions for USB, VAAPI, and NVIDIA device passthrough, including device selection dialogs, configuration file updates, and compatibility handling for privileged and unprivileged containers.
2025-09-22 13:18:15 +02:00
CanbiZ
8aae603267 Refactor VAAPI passthrough to external script
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces the inlined VAAPI passthrough logic in misc/build.func with calls to an external passthrough.func script, streamlining and centralizing hardware passthrough handling. Adds a new misc/passthrough.func file and introduces a hwaccel_setup_in_ct helper in misc/tools.func for hardware acceleration setup inside containers.
2025-09-22 13:17:20 +02:00