Commit Graph

1 Commits

Author SHA1 Message Date
652638e920 Rebuild stale grub.cfg in swap setup scripts
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
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>
2026-11-27 14:10:34 +01:00