diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-18 19:46:05 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-18 19:46:05 -0500 |
| commit | be2277d0db1afa06c1a1ab468f70b34c8d98e0a1 (patch) | |
| tree | bd38eb5586a84dc22c55b502ca8b8caecf734f97 /scripts/testing/tests/test_boot.py | |
| parent | cc358cffc4d02946a8e6fb649219443f40cee782 (diff) | |
| download | archsetup-be2277d0db1afa06c1a1ab468f70b34c8d98e0a1.tar.gz archsetup-be2277d0db1afa06c1a1ab468f70b34c8d98e0a1.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.py | 4 |
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" |
