diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-18 14:38:31 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-18 14:38:31 -0600 |
| commit | 2c563706150794206a586d9f670d1b4950698e52 (patch) | |
| tree | 10a08d2d76d7f98c380cfafe404a985934048a02 /build.sh | |
| parent | adcf0be760d6b28a64203d37a63e10823b1b471e (diff) | |
| download | archangel-2c563706150794206a586d9f670d1b4950698e52.tar.gz archangel-2c563706150794206a586d9f670d1b4950698e52.zip | |
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
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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/"* |
