summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-29 07:28:10 -0600
committerCraig Jennings <c@cjennings.net>2026-01-29 07:28:10 -0600
commit4dd6e3004f3a9829940fc858d6107b39296b282e (patch)
treec0cb38271ab82ae1e1b64c1dae365d2d6d17df79
parent082a6731d52a4795e90bf5c29bf8ad0510d11188 (diff)
fix(archsetup): remount /.snapshots after snapper config
Archangel creates @snapshots subvolume and adds it to fstab. Archsetup unmounts it for snapper create-config, but never remounted it, causing snap-pac errors during package installs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
-rwxr-xr-xarchsetup6
1 files changed, 6 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index a2aaa2d..09ca9f2 100755
--- a/archsetup
+++ b/archsetup
@@ -1289,6 +1289,12 @@ EOF
display "task" "snapper root config already exists"
fi
+ # Ensure /.snapshots is mounted (archangel may have created @snapshots in fstab)
+ if ! mountpoint -q /.snapshots 2>/dev/null; then
+ mkdir -p /.snapshots
+ mount /.snapshots >> "$logfile" 2>&1 || true
+ fi
+
action="configuring snapper retention policy" && display "task" "$action"
# Conservative retention - local snapshots for quick rollback
snapper -c root set-config "TIMELINE_CREATE=yes" >> "$logfile" 2>&1