aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/design/2026-06-29-zfs-pre-snapshot-installer.org8
-rw-r--r--docs/design/system-monitor-design-ideas.org2
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/design/2026-06-29-zfs-pre-snapshot-installer.org b/docs/design/2026-06-29-zfs-pre-snapshot-installer.org
index e5a339e..1b9235e 100644
--- a/docs/design/2026-06-29-zfs-pre-snapshot-installer.org
+++ b/docs/design/2026-06-29-zfs-pre-snapshot-installer.org
@@ -30,9 +30,9 @@ version below); live backup at =/usr/local/bin/zfs-pre-snapshot.bak-2026-06-29=.
In the archzfs / ZFS-on-root install path, gated to ZFS-root installs (velox is
the only ZFS daily driver; ratio is btrfs), install:
-1. =/etc/pacman.d/hooks/zfs-snapshot.hook= — the =PreTransaction= hook that
+1. =/etc/pacman.d/hooks/05-zfs-snapshot.hook= — the =PreTransaction= hook that
runs the script. *Not included in the handoff* — source it from velox
- (=/etc/pacman.d/hooks/zfs-snapshot.hook=) or write it.
+ (=/etc/pacman.d/hooks/05-zfs-snapshot.hook=) or write it.
2. =/usr/local/bin/zfs-pre-snapshot= — the =KEEP=10= self-pruning version
below.
@@ -80,8 +80,10 @@ fi
* Implementation (2026-06-30)
-- Hook sourced from velox (=/etc/pacman.d/hooks/zfs-snapshot.hook=) and embedded
+- Hook sourced from velox (=/etc/pacman.d/hooks/05-zfs-snapshot.hook=) and embedded
as a heredoc in =configure_pre_pacman_snapshots()=.
+- The installer removes the legacy unprefixed hook filenames during migration;
+ leaving them would run duplicate hooks, including a too-late snapshot.
- Insertion point: a new =configure_pre_pacman_snapshots()= gated on
=is_zfs_root=, called from =boot_ux= (the last step) so the hook doesn't fire
during the install's own package operations — the first pre-pacman snapshot is
diff --git a/docs/design/system-monitor-design-ideas.org b/docs/design/system-monitor-design-ideas.org
index 26619a0..b536604 100644
--- a/docs/design/system-monitor-design-ideas.org
+++ b/docs/design/system-monitor-design-ideas.org
@@ -395,7 +395,7 @@ Representation:
Tools:
- ZFS: =zfs list -t snapshot=, =zfs-pre-snapshot=,
- =/etc/pacman.d/hooks/zfs-snapshot.hook=.
+ =/etc/pacman.d/hooks/05-zfs-snapshot.hook=.
- Btrfs: =snapper list=, =snap-pac=, =grub-btrfs-mkconfig=,
=/.snapshots=.
- Common: =pacman -Q= for snapshot packages.