mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-07-16 05:49:49 +00:00
system overhaul and bug fixeds
- Replaced the fragile upstream script installer with native Deb822 repository injection and automated GPG keyring management in `jellyfin.sh`. Eliminated external dependencies, checksums, and interactive flags for guaranteed non-interactive support across Bullseye/Bookworm/Trixie. - Upgraded the NVMe module (`modules/extras/system/system.sh`) to perform multi-drive scanning with dynamic `lsblk` parsing. Replaced single-disk detection logic with a `while read` loop to capture all devices, displaying formatted SMART health diagnostics (Critical Warning, Temperature, Percentage Used). - Overhauled the 'System Information' TUI into a multi-device dashboard featuring standalone GPU/Driver hierarchies and dynamic storage mapping. Added new globals (`DISPLAY_SERVER`, `STORAGE_SUMMARY`) and comprehensive arrays for Network/Wi-Fi interface indexing in `modules/utils.sh`. - Redesigned the graphics stack layout to fix multi-GPU text clipping and unified Mesa version prompting logic. Integrated post-install package telemetry to display live versions in the completion screen, separating planning visualization from installation decision points in `modules/gpu.sh`. - Fixed non-free-firmware conceptual documentation bugs and expanded Backports descriptions with hardware-focused educational text. Added non-free repository safeguards for Trixie/Bullseye compatibility under "Firmware & Wireless Drivers". - Refactored repository logic in modules/repos.sh to eliminate dead code (redundant default_text variables) and strict-hardcoded layout behaviors, standardizing dialog geometry to a clean matrix. - Updated README.md
This commit is contained in:
+34
-20
@@ -16,11 +16,13 @@ install_gpu_drivers() {
|
||||
info+="Components:\n"
|
||||
info+=" Mesa (OpenGL / Vulkan / VA-API)\n"
|
||||
if [ "$GPU_TYPE" != "unknown" ]; then
|
||||
info+=" GPU firmware for ${GPU_DESC}\n"
|
||||
info+=" GPU firmware\n"
|
||||
fi
|
||||
info+=" Monitoring tools (nvtop, vainfo, ...)"
|
||||
|
||||
if ! _confirm "Graphics Stack" "$info"; then
|
||||
_msg "Graphics Stack" "$info" 16 70
|
||||
|
||||
if ! _confirm "Graphics Stack" "Proceed with the graphics stack setup?"; then
|
||||
echo "Skipping Graphics Stack."
|
||||
return
|
||||
fi
|
||||
@@ -66,21 +68,15 @@ install_gpu_drivers() {
|
||||
fi
|
||||
|
||||
# ── Detectable GPU: build plan ──
|
||||
local ref_ver
|
||||
ref_ver=$(apt-cache policy mesa-vulkan-drivers 2>/dev/null | awk 'NR==3 {print $2; exit}')
|
||||
local ref_bpo_ver
|
||||
ref_bpo_ver=$(apt-cache madison mesa-vulkan-drivers 2>/dev/null | \
|
||||
grep "${DEBIAN_CODENAME}-backports" | awk '{print $3}' | head -1)
|
||||
local comp_line="Components: Vulkan, OpenGL, GLX, EGL, VA-API (64-bit)"
|
||||
|
||||
local src_line="Source: Debian Stable"
|
||||
[ -n "$ref_bpo_ver" ] && [ "$(is_backports_enabled)" == "true" ] && src_line="Source: Debian ${DEBIAN_CODENAME^}-Backports"
|
||||
|
||||
local plan="GPUs detected: ${GPU_DESC}\n\n"
|
||||
plan+="${src_line}\n"
|
||||
plan+="Mesa ${ref_bpo_ver:-$ref_ver}\n"
|
||||
plan+="${comp_line}\n\n"
|
||||
plan+="Components:\n"
|
||||
local plan=""
|
||||
local gpu_count=0
|
||||
while IFS= read -r gpu_line; do
|
||||
gpu_count=$((gpu_count + 1))
|
||||
local desc
|
||||
desc=$(echo "$gpu_line" | sed -E 's/.*: //; s/ *\(rev.*//')
|
||||
plan+=" GPU ${gpu_count}: ${desc}\n"
|
||||
done < <(lspci -nn | grep -E "VGA|3D" || true)
|
||||
plan+="\nComponents:\n"
|
||||
if $HAS_INTEL; then
|
||||
local _gen; _gen=$(get_intel_generation)
|
||||
local _va; [ "$_gen" = "gen7-" ] && _va="i965-va-driver-shaders" || _va="intel-media-va-driver-non-free"
|
||||
@@ -90,10 +86,13 @@ install_gpu_drivers() {
|
||||
plan+=" [+] AMD firmware (firmware-amd-graphics)\n"
|
||||
fi
|
||||
if $HAS_NVIDIA; then
|
||||
plan+=" [+] NVIDIA driver (details in next step)\n"
|
||||
plan+=" [+] NVIDIA driver\n"
|
||||
fi
|
||||
plan+=" [+] Mesa (version selected in next step)\n"
|
||||
|
||||
if ! _confirm "Graphics Stack — ${GPU_DESC}" "$plan" 14 70; then
|
||||
_msg "Graphics Stack — Plan" "$plan" 16 70
|
||||
|
||||
if ! _confirm "Graphics Stack" "Install the components shown above?"; then
|
||||
echo "Skipping Graphics Stack."
|
||||
return
|
||||
fi
|
||||
@@ -140,6 +139,11 @@ install_gpu_drivers() {
|
||||
# ── Mesa (once) ──
|
||||
_install_mesa_backports
|
||||
|
||||
# ── Refresh GPU_VERSION after Mesa install ──
|
||||
local mesa_ver
|
||||
mesa_ver=$(dpkg -l libgl1-mesa-dri 2>/dev/null | awk '/^ii/ {print $3; exit}' | sed 's/-.*//')
|
||||
[ -n "$mesa_ver" ] && GPU_VERSION="Mesa ${mesa_ver}"
|
||||
|
||||
# ── Vendor-specific tools ──
|
||||
if $HAS_INTEL; then
|
||||
offer_intel_tools
|
||||
@@ -151,5 +155,15 @@ install_gpu_drivers() {
|
||||
offer_generic_tools
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}Graphics stack setup complete.${NC}"
|
||||
# ── Build summary ──
|
||||
local summary=""
|
||||
summary+="Mesa: ${GPU_VERSION:-not available}\n"
|
||||
if $HAS_NVIDIA; then
|
||||
local nv_mode="${NVIDIA_DRIVER_MODE:-unknown}"
|
||||
summary+="NVIDIA: ${nv_mode}\n"
|
||||
fi
|
||||
summary+="Firmware: installed for detected GPUs\n"
|
||||
summary+="Tools: installed per vendor selection"
|
||||
|
||||
_msg "Graphics Stack — Complete" "$summary" 12 65
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user