diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-21 20:11:15 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-21 20:11:15 -0500 |
| commit | 4c5af5c5bf2112c301efc3e4da1cf8812051692a (patch) | |
| tree | a1dff36907bff6f0ab4920c457784904b6525c90 /tests | |
| parent | 11af802af31b69e8e478baae3ea6e5b5090bafaf (diff) | |
| download | archangel-4c5af5c5bf2112c301efc3e4da1cf8812051692a.tar.gz archangel-4c5af5c5bf2112c301efc3e4da1cf8812051692a.zip | |
fix: verify_rollback sentinel must live on the rolled-back dataset
/root is mounted on a separate dataset (zroot/home/root, created by
archangel:create_datasets), but verify_rollback was snapshotting
zroot/ROOT/default. The rollback was a no-op for the sentinel file,
so the post-rollback existence check failed — the visible symptom
was a PASSED test with a soft-failure warning
("Rollback failed - test file not restored" →
"Rollback verification had issues") that persisted across ZFS
configs for weeks.
Move the sentinel to /etc/archangel-rollback-test. /etc has no child
dataset mounted there, so the file lives on zroot/ROOT/default —
the dataset actually being snapshotted and rolled back.
Defensively single-quote $test_file at the five ssh_cmd call-sites
so future path changes (whitespace, special chars) stay correct
without touching each call again.
The 2026-04-21 VM run logged "Rollback verified - test file restored"
on zfs-mirror-encrypt, confirming the fix.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
