Staged installer set for Alpine Linux x86-64 (tinkerpad/ThinkPad T480). Covers Base (Tier 0), Minimal (Tier 1), and Basic (Tier 2) tiers with full phased structure, per-package error capture, and re-runnable test suites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.6 KiB
Bash
40 lines
1.6 KiB
Bash
#!/usr/bin/env bash
|
|
# Created by John A. Hoeven with the ethical assistance of Claude AI
|
|
# ---------------------------------------------------------------------------
|
|
# 05_fonts.sh
|
|
# ~/projects/ceos/alpine-installer/lib/basic/05_fonts.sh
|
|
# Version: v0.0.1 | Status: DEVELOPMENT
|
|
# Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480)
|
|
# ---------------------------------------------------------------------------
|
|
# Basic Tier subscript: fonts and display — figlet, nerd-fonts (@edge).
|
|
# nerd-fonts package name confirmed via pkgs.alpinelinux.org (edge/community).
|
|
# Installs with @edge tag; gracefully skips on failure.
|
|
# Defines install_basic_fonts().
|
|
# ---------------------------------------------------------------------------
|
|
|
|
install_basic_fonts() {
|
|
log_info "--- basic/05_fonts: fonts and display ---"
|
|
|
|
install_pkg "figlet"
|
|
run_test "figlet present" 'command -v figlet >/dev/null 2>&1' warn
|
|
|
|
# nerd-fonts — edge/community; package name verified as 'nerd-fonts'
|
|
ensure_edge_repo
|
|
|
|
log_info "Installing nerd-fonts from @edge/community..."
|
|
if install_pkg_edge "nerd-fonts"; then
|
|
log_info "nerd-fonts installed"
|
|
else
|
|
log_warn "nerd-fonts@edge not available — skipping gracefully"
|
|
MANUAL_PKGS+=("nerd-fonts: edge install failed — check pkgs.alpinelinux.org/packages?name=nerd-fonts&branch=edge")
|
|
fi
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
SCRIPT_NAME="basic_05_fonts"
|
|
source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; }
|
|
check_not_root
|
|
install_basic_fonts
|
|
print_summary
|
|
fi
|