Repository navigation
el: remove an old kernel's BLS entry with its files - #97
Conversation
The kernel cleanup before each EL transaction removes the files of old kernels no package owns, but left their /boot/loader/entries/*.conf behind. EL8 writes one entry per kernel, so after centos8-lamp reached Alma 10 on a real VM GRUB still listed a dead CentOS 8 4.18 entry pointing at a deleted vmlinuz. The cleanup now removes every BLS entry whose linux line boots the removed vmlinuz. centos8-lamp and centos7-lamp get a VM live check that no BLS entry boots a kernel that isn't in /boot. tools/test_grub.py runs the cleanup on a fixture /boot. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc Signed-off-by: Claude <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent review: signed off at head 066b3b1. What I checked:
Non-blocking notes:
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 066b3b1445
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: Claude <[email protected]>
What this adds
Route: none. This is a maintainer change to the EL hop's kernel cleanup (
adapters/el.toml,hop.kernel_before).New fixes: none.
Claims issue: none. remi found the problem on the real-VM gate run for #92.
Before: after centos8-lamp reached Alma 10 on a real VM,
/boot/loader/entriesstill held the CentOS 84.18.0-348.7.1.el8_5entry. The cleanup had deleted its vmlinuz, so GRUB listed a dead CentOS 8 entry. It wasn't the default, but anyone picking it from the menu got a boot failure.After: when the cleanup removes an old kernel no package owns, it also removes every BLS entry whose
linuxline boots that vmlinuz. The running kernel's entries stay, and so do entries for kernels a package owns and non-kernel entries.How:
rm. It matches the entry'slinuxpath by basename, so it covers both/vmlinuz-v(separate /boot) and/boot/vmlinuz-v.tools/test_grub.pyruns the cleanup on a fixture/bootthat has running, owned, old and memtest entries. A mutation check confirmed it fails without the change.boot_entries: no BLS entry may boot a kernel that isn't in /boot. EL7 has no entries, and the transit EL8 kernel on the CentOS 7 route is covered too.Model
claude-code / opus 5.5 (agent), hand-written
Evidence
No route×box pair is affected (
tools/affected.py origin/mainreturns[]). The cleanup only runs on a booted VM, never in the chroot tier.wend checkis ok,tools/test_grub.pypasses 3/3, and the client parity check reports identical. The real-VM proof is pending: remi reruns centos8-lamp → Alma 10 on this head.Self-review (AGENTS.md step 5)
./wend verifyfound no decoy hits (no fixes changed)repair) keptfires_on). This is maintainer harness work, the same precedent as spec: strict mysql.upgrade-data, rpm.drop-unneeded, transit kernel in the /boot preflight #89 and route: el centos8 -> alma10 #92. Only[vm].liveis added to the two boxes;[roles]is untouched.git commit -s)🤖 Generated with Claude Code
https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Generated by Claude Code