bootstrap: remaining-steps text matches the 2026-07-31 flow (copy-off D:, format before Plex)
This commit is contained in:
+15
-11
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# =============================================================================
|
# ===================================================================================
|
||||||
# mediabox-bootstrap — first-boot orchestrator
|
# mediabox-bootstrap — first-boot orchestrator
|
||||||
#
|
#
|
||||||
# Runs ONCE from mediabox-firstboot.service, but every stage is idempotent so
|
# 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
|
# 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
|
# 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.
|
# this runs; keeping it that way is the whole safety net on a headless box.
|
||||||
# =============================================================================
|
# ===================================================================================
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
@@ -64,29 +64,33 @@ fi
|
|||||||
|
|
||||||
cat <<'NEXT'
|
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
|
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=<nas-user>\npassword=<nas-pass>\ndomain=WORKGROUP\n' \
|
printf 'username=<nas-user>\npassword=<nas-pass>\ndomain=WORKGROUP\n' \
|
||||||
> /etc/cifs/korval.cred
|
> /etc/cifs/korval.cred
|
||||||
chmod 600 /etc/cifs/korval.cred
|
chmod 600 /etc/cifs/korval.cred
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
/srv/mediabox-bootstrap/scripts/20-cifs.sh --verify
|
/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
|
vainfo --display drm --device /dev/dri/renderD128
|
||||||
|
|
||||||
3. Restore the Plex data directory and remap the database:
|
3. Copy EVERYTHING off D: to the NAS media_pc share, stage via the SSD,
|
||||||
/srv/mediabox-bootstrap/migration/README.md (sections M3, M4)
|
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.
|
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,
|
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.
|
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
|
NEXT
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user