1259 Commits

Author SHA1 Message Date
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
CanbiZ
c7456236a0 Refactor settings menu and exit handling in build.func
Simplifies the menu item logic for settings and app defaults, updates the whiptail menu to use custom button labels, and replaces direct exit calls with the exit_script function for consistent script termination.
2025-09-17 16:02:42 +02:00
CanbiZ
92b1328f89 Update build.func 2025-09-17 15:56:56 +02:00
CanbiZ
b9b52a6642 Remove diagnostics and storage menu options
Eliminates the diagnostics and storage options from the install_script function, consolidating the menu and redirecting the diagnostics option to settings_menu. This simplifies the script's menu structure and removes unused or deprecated functionality.
2025-09-17 15:49:12 +02:00
CanbiZ
8b34ae346b Refactor install menu and add settings submenu
Updated the install menu labels for clarity and dynamic numbering. Introduced a new settings_menu function to manage diagnostic, default, and storage settings, with conditional options based on the presence of app defaults.
2025-09-17 15:41:13 +02:00
CanbiZ
b678f8828a Fix storage variable assignment in echo_storage_summary_from_file
Corrects the logic for setting TEMPLATE_STORAGE and CONTAINER_STORAGE by checking if tpl and ct are set, respectively, and calling choose_and_set_storage_for_file if not. This ensures storage variables are properly initialized before use.
2025-09-17 15:34:04 +02:00
CanbiZ
6c9d1d0e23 Update build.func 2025-09-17 15:26:17 +02:00
CanbiZ
cfed8d6e69 Update build.func 2025-09-17 15:17:07 +02:00
CanbiZ
b622505d81 Update build.func 2025-09-17 14:58:16 +02:00
CanbiZ
8ce34b4ee0 Refactor storage selection and enforce user prompt
Unifies and refactors storage selection logic to always prompt the user for container and template storage choices unless only one option exists, as per requirement #4. Removes legacy selection functions, updates all relevant install and menu flows to use the new logic, and ensures storage settings are consistently written to vars files and environment variables. Also improves code clarity and maintains storage summary output.
2025-09-17 13:59:14 +02:00
CanbiZ
ca28e419ef Update build.func 2025-09-17 13:02:37 +02:00
CanbiZ
81329f74b1 Update build.func 2025-09-17 12:07:36 +02:00