zram menu refactor, mesa fix & sysinfo ui

- Refactored `install_zram` into a dedicated submenu (`zram_menu`) within `modules/zram.sh`. Split monolithic logic into three distinct operations: `_zram_view`, `_zram_create`, and `_zram_remove`. Enables status verification before installation and safe cleanup. Updated main menu entry in `debianito.sh` to call the new sub-menu.
- Resolved Trixie backports dependency conflicts between `mesa-libgallium` and `mesa-va-drivers` (Mesa 26+). Modified package lists in `_helpers.sh` and `gpu.sh` to exclude `mesa-va-drivers` during backports installs, prioritizing `mesa-vulkan-drivers` for stable Gallium integration.
- Implemented dynamic dimensioning in `_show_sysinfo()`. Calculates optimal width/height based on terminal size (`tput cols`) and content length. Truncates long lines to prevent UI overflow in small terminals, capped at 22-line height.
This commit is contained in:
stornic56
2026-07-21 00:58:00 -05:00
committed by GitHub
parent 92d0eb7467
commit da88e9fcee
5 changed files with 156 additions and 9 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ main_menu() {
fi
STATE_REFRESHED=true
;;
8) install_zram || true ;;
8) zram_menu || true ;;
9) manage_swap || true; STATE_REFRESHED=true ;;
10)
if [ "$DEBIAN_VERSION" = "11" ] && type install_extras_bullseye &>/dev/null; then