setup_zram.sh/setup_zswap.sh ran grub-mkconfig only when /etc/default/grub
changed, so a run cut off between the two writes left grub.cfg booting the
old setup and every rerun exited 0 (zswap Y plus zram0 after a reboot).
Now grub.cfg is rebuilt whenever a linux line lacks the exact target zswap
words, and the scripts exit 1 before any live change when grub.cfg is still
wrong after the rebuild or a loader entry has no options line carrying them.
vmbox guest zc3: stale-zram, stale-zswap, again and noopts phases all OK.
Prunes the oldest contract (g29, 2026-09-14) to stay at the 60-file cap.
Bug-class-check: fixes/lib/tests/test_swap_switch.sh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>