1220 Commits

Author SHA1 Message Date
Vincent
552959a39b Update Guardian installation and update scripts to use new repository paths and improve dependency management 2025-09-30 14:36:17 -04: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
8dec778dff Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 14:51:52 +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
7dd84a1c99 Move VAAPI and NVIDIA setup to debian-install.sh
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
The VAAPI and NVIDIA setup functions are now called directly in debian-install.sh instead of within the LXC container customization block in build.func. The related code in build.func has been commented out to avoid duplicate execution.
2025-09-22 14:14:35 +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
CanbiZ
1f8a76e8e2 Refactor VAAPI passthrough device selection logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces legacy VAAPI device detection and selection with a modular, more robust approach. Adds helpers for group ID resolution, device deduplication, and dynamic whiptail dialog sizing. Improves user prompts, error handling, and fallback logic for both privileged and unprivileged containers. The new implementation is more maintainable and user-friendly.
2025-09-22 13:06:12 +02:00
CanbiZ
5b6bbd1ed0 Improve LXC network wait and gateway check logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactors the LXC container network initialization to simplify IP wait logic, reduce gateway ping attempts from 20 to 10, and provide clearer status messages. Now warns instead of failing if the gateway is unreachable but the container has an IP, improving robustness in network checks.
2025-09-22 12:41:26 +02:00
CanbiZ
00750681ed Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 12:35:24 +02:00
CanbiZ
44e64d8b98 Improve LXC network readiness and DNS fallback logic
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Refactors the LXC network wait loop to use a for-loop with up to 20 attempts, providing clearer warnings and early exits when network and DNS are ready. Adds more robust handling for DNS failures by applying a fallback resolv.conf only after repeated failures, improving reliability and user feedback during container setup.
2025-09-22 11:38:22 +02:00
CanbiZ
6373e16d44 Refactor network string construction in build_container
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Improves readability and flexibility by building the NET_STRING variable incrementally, using parameter expansion to include only set values for MAC, GATE, VLAN, and MTU. This change makes the network configuration more robust and easier to maintain.
2025-09-22 11:34:44 +02:00
CanbiZ
2db707079b Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 11:31:19 +02:00
tremor021
923a24a1cc Update shell detection
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-22 09:34:31 +02:00
CanbiZ
a03d46f5b2 Update build.func 2025-09-19 11:03:21 +02:00
CanbiZ
d2e2b33c83 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 09:09:17 +02:00
CanbiZ
b840a8aa32 Replace init_error_traps with catch_errors in scripts
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Replaces all occurrences of the 'init_error_traps' function with 'catch_errors' across container and install scripts for consistency in error handling. Also adjusts indentation and formatting in some scripts for improved readability.
2025-09-19 08:53:49 +02:00
CanbiZ
fe3de07157 Add clean install option to fetch_and_deploy_gh_release
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Introduces a CLEAN_INSTALL environment variable to optionally remove all files in the target directory before extracting a GitHub release. This ensures a clean deployment when required.
2025-09-19 08:41:24 +02:00
CanbiZ
17cb74a8f0 Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:28:10 +02:00
CanbiZ
864e63c04d Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:27:08 +02:00
CanbiZ
271665dfef Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:26:22 +02:00
CanbiZ
afecb023cc Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-19 08:23:41 +02:00
CanbiZ
c618b893da Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:20:21 +02:00
CanbiZ
435afc65cc testi
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:18:33 +02:00
CanbiZ
261a1cec79 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:15:21 +02:00
CanbiZ
2844eaf976 Update tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:14:08 +02:00
CanbiZ
3deefd6ffb test
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:12:43 +02:00
CanbiZ
e6931c7c4f Update alpine-tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:11:23 +02:00
CanbiZ
6d2282e5c3 Update alpine-tools.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
2025-09-18 13:08:38 +02:00
CanbiZ
ff0e6794d4 Update build.func 2025-09-18 13:07:07 +02:00
CanbiZ
7101291349 Update build.func 2025-09-18 13:04:11 +02:00
CanbiZ
51eb81ac62 tested 2025-09-17 17:13:04 +02:00
CanbiZ
65bc905cff Update build.func 2025-09-17 17:08:52 +02:00
CanbiZ
776c39b8fc Update build.func 2025-09-17 17:07:56 +02:00
CanbiZ
82707ce199 Improve whiptail menu UI in install_script function
Updated the whiptail menu in the install_script function to enhance usability. Changes include adjusting the backtitle, adding --fb and --notags options, updating the menu prompt with navigation instructions, and increasing the menu width for better display.
2025-09-17 17:00:39 +02:00
CanbiZ
699aaefdb5 Update build.func 2025-09-17 16:57:55 +02:00
CanbiZ
8cd3defbd5 Update build.func 2025-09-17 16:57:08 +02:00
CanbiZ
a0b9bdbbec Improve settings menu instructions in build script
Updated the settings menu prompt to include navigation instructions for users, clarifying how to use TAB, Arrow keys, and ENTER to select options.
2025-09-17 16:56:43 +02:00
CanbiZ
f36f1b3132 Update whiptail menu titles and dimensions
Changed menu titles to reference 'Community-Scripts' instead of generic 'SETTINGS' and adjusted menu width from 60 to 40 in install_script for improved clarity and UI consistency.
2025-09-17 16:55:06 +02:00
CanbiZ
95171c5025 Update build.func 2025-09-17 16:17:11 +02:00
CanbiZ
322fd681cb Refactor install_script menu and preset handling
Simplifies the install_script function by replacing the PRESET environment variable logic with direct CLI argument support for preset selection. Updates the whiptail menu options, streamlines case handling, and improves error handling for invalid options. This refactor makes the script interface more intuitive and reduces code complexity.
2025-09-17 16:13:02 +02:00