aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/tests/test_boot.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-18 19:46:05 -0500
committerCraig Jennings <c@cjennings.net>2026-07-18 19:46:05 -0500
commit80017365527b612ca8763b29c5771fc41d58def5 (patch)
treebd38eb5586a84dc22c55b502ca8b8caecf734f97 /scripts/testing/tests/test_boot.py
parentbea3010992ba56f5b248638be6db78ff0b9132bb (diff)
downloadarchsetup-80017365527b612ca8763b29c5771fc41d58def5.tar.gz
archsetup-80017365527b612ca8763b29c5771fc41d58def5.zip
fix: order pacman safety hooks
Install snapshot and live-update hooks before mkinitcpio removal, migrate legacy paths, and cover the ordering invariant.
Diffstat (limited to 'scripts/testing/tests/test_boot.py')
-rw-r--r--scripts/testing/tests/test_boot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/testing/tests/test_boot.py b/scripts/testing/tests/test_boot.py
index e442682..66b78e4 100644
--- a/scripts/testing/tests/test_boot.py
+++ b/scripts/testing/tests/test_boot.py
@@ -76,8 +76,8 @@ def test_zfs_pre_pacman_snapshot_hook(host):
script = host.file("/usr/local/bin/zfs-pre-snapshot")
assert script.exists and script.is_file, "pre-pacman snapshot script missing"
assert script.mode & 0o111, "pre-pacman snapshot script is not executable"
- hook = host.file("/etc/pacman.d/hooks/zfs-snapshot.hook")
- assert hook.exists and hook.is_file, "zfs-snapshot.hook missing"
+ hook = host.file("/etc/pacman.d/hooks/05-zfs-snapshot.hook")
+ assert hook.exists and hook.is_file, "05-zfs-snapshot.hook missing"
assert "PreTransaction" in hook.content_string, "hook not PreTransaction"
assert "/usr/local/bin/zfs-pre-snapshot" in hook.content_string, \
"hook does not exec the snapshot script"