aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-21 10:32:12 +0200
committerDanilo M. <danix@danix.xyz>2026-10-21 10:32:12 +0200
commitb3c5d50c293b16ab1ce6e8ba25fedbfcdb493daf (patch)
treec27dbb94232aed3d36c2042c92e97c2e3de2af41 /README.md
parentf2293db643a726631b2a054bd5c76e367bb2567f (diff)
downloadslackrepo_setup-b3c5d50c293b16ab1ce6e8ba25fedbfcdb493daf.tar.gz
slackrepo_setup-b3c5d50c293b16ab1ce6e8ba25fedbfcdb493daf.zip
slackrepo_setup: build in .new and swap; sbshadow --yesHEADmaster
A failed clone no longer leaves the VM without a tree: the new tree is built in $REPO.new and swapped in only when clone and subtree adds succeed. sbshadow runs with --yes, since sb-builder runs this script as a job with no stdin and the bare prompt would read EOF as "no". The old tree is deleted once shadowing succeeds and kept as $REPO.old if it fails. SBO_REPO overrides the path, as in sbshadow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 04e525e..06a8b45 100644
--- a/README.md
+++ b/README.md
@@ -15,9 +15,11 @@ upstream tree), so the overlay version wins.
## Files
-- `slackrepo_setup_SBo-danix.sh`: full rebuild. Wipes the repo, clones upstream,
- adds the subtrees, then runs `sbshadow`. **Destructive**: `rm -rf`s the repo
- on every run.
+- `slackrepo_setup_SBo-danix.sh`: full rebuild. Clones upstream and adds the
+ subtrees in `$REPO.new`, swaps it in, then runs `sbshadow --yes`.
+ **Destructive**: the old tree is deleted once shadowing succeeds; a failed
+ clone leaves it untouched, a failed `sbshadow` leaves it as `$REPO.old`.
+ sb-builder runs it as the `rebuild-tree` job.
- `sbshadow`: reconciles shadowing both ways. Shadows upstream packages now
carried in an overlay, and restores (unshadows) upstream packages no longer
carried, from the pristine `current` branch. Asks once before changing