From 2c563706150794206a586d9f670d1b4950698e52 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 18 Jan 2026 14:38:31 -0600 Subject: Add rescue tools and ZFS rescue guide - Add tealdeer, pv, rsync, mbuffer, lsof to ISO packages - Pre-populate tealdeer cache during build for offline tldr - Create RESCUE-GUIDE.txt with comprehensive ZFS recovery section - Copy rescue guide to /root/ on ISO --- build.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 67542ec..b816ba5 100755 --- a/build.sh +++ b/build.sh @@ -128,6 +128,14 @@ fzf # For installation scripts dialog + +# Rescue/Recovery tools +tealdeer +pv +rsync +mbuffer +lsof + EOF # Get kernel version for ISO naming @@ -195,6 +203,10 @@ cp "$CUSTOM_DIR/zfs-snap-prune" "$PROFILE_DIR/airootfs/usr/local/bin/" mkdir -p "$PROFILE_DIR/airootfs/root" cp "$CUSTOM_DIR/install-archzfs.conf.example" "$PROFILE_DIR/airootfs/root/" +# Copy rescue guide +info "Copying rescue guide..." +cp "$CUSTOM_DIR/RESCUE-GUIDE.txt" "$PROFILE_DIR/airootfs/root/" + # Set permissions in profiledef.sh info "Setting file permissions..." if grep -q "file_permissions=" "$PROFILE_DIR/profiledef.sh"; then @@ -226,6 +238,20 @@ if [[ -d /home/cjennings/code/archsetup ]]; then rm -rf "$PROFILE_DIR/airootfs/code/archsetup/.claude" fi +# Pre-populate tealdeer (tldr) cache for offline use +info "Pre-populating tealdeer cache..." +if command -v tldr &>/dev/null; then + tldr --update 2>/dev/null || true + if [[ -d "$HOME/.cache/tealdeer" ]]; then + mkdir -p "$PROFILE_DIR/airootfs/root/.cache" + cp -r "$HOME/.cache/tealdeer" "$PROFILE_DIR/airootfs/root/.cache/" + info "Tealdeer cache copied (~27MB)" + fi +else + warn "tealdeer not installed on build host, skipping cache pre-population" + warn "Install with: pacman -S tealdeer && tldr --update" +fi + # Ensure scripts are executable in the profile chmod +x "$PROFILE_DIR/airootfs/usr/local/bin/"* -- cgit v1.2.3