diff --git a/bootstrap.sh b/bootstrap.sh index 3f88e4b..82c8e03 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# ============================================================================= +# =================================================================================== # mediabox-bootstrap — first-boot orchestrator # # Runs ONCE from mediabox-firstboot.service, but every stage is idempotent so @@ -12,7 +12,7 @@ # DESIGN RULE: no stage may leave the box unbootable or unreachable. Every # stage that can fail, fails soft and logs. sshd is already up by the time # this runs; keeping it that way is the whole safety net on a headless box. -# ============================================================================= +# =================================================================================== set -uo pipefail REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" @@ -64,29 +64,33 @@ fi cat <<'NEXT' --------------------------------------------------------------------------- - REMAINING STEPS — deliberately NOT automated --------------------------------------------------------------------------- +-------------------------------------------------------------------------------- + REMAINING STEPS — deliberately NOT automated (2026-07-31 flow) +-------------------------------------------------------------------------------- 1. Write the NAS password into the credentials file (over the MCP, never - onto the USB): + onto the USB), then verify the seven mounts — the six library shares + must REFUSE writes, media_pc must accept them: printf 'username=\npassword=\ndomain=WORKGROUP\n' \ > /etc/cifs/korval.cred chmod 600 /etc/cifs/korval.cred systemctl daemon-reload /srv/mediabox-bootstrap/scripts/20-cifs.sh --verify - 2. Verify Quick Sync before deploying Plex: + 2. Verify Quick Sync before anything Plex-related: vainfo --display drm --device /dev/dri/renderD128 - 3. Restore the Plex data directory and remap the database: - /srv/mediabox-bootstrap/migration/README.md (sections M3, M4) + 3. Copy EVERYTHING off D: to the NAS media_pc share, stage via the SSD, + format D: to ext4, then restore and remap: + /srv/mediabox-bootstrap/migration/README.md (sections M2, M3, M4) Do NOT claim the server. The migration preserves its identity. + The 337 GB Media/ cache lives on /srv/data (the former D:), NOT the SSD. 4. Repoint NPM proxy host 42 from mediabox-mcp:8103 to 10.0.1.20:8103, then delete the mediabox-mcp container and its key on arrsstack. - 5. Leave D: alone until the soak is done. --------------------------------------------------------------------------- + 5. Soak 1-2 weeks. Keep the NAS media_pc backup — pruning it later is a + deliberate decision, not a cleanup step. +-------------------------------------------------------------------------------- NEXT exit 0