Repository navigation
Conversation
chessing234
left a comment
There was a problem hiding this comment.
matching the modules dir (not vmlinuz) is what aarch64 needs. good.
|
Salvaged into the Chessing234-approved leftover wave: #11555 Cherry-picked onto current |
bc23352 to
228d972
Compare
quattro wrapped the kernel check in the --services-only guard; the modules-directory loop moves inside it unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviewed and verified on a disposable Omarchy worker (x86_64, Pushed: 18bf2d8 merges Reproduced: with the running kernel's Suite: Second opinion: Codex Medium agreed the problem is real and the diff proportionate (it had seen my conclusions, so this agreement is not independent). It also found something I had not looked at. Related: #12956 carries this same hunk bundled with an unrelated herdr keybinding change. This is the focused one. Waiting on the maintainer: whether the headers-ownership case is worth tightening before it lands. |
|
| # The package-owned modules directory is the architecture-neutral identity. | ||
| for modules_dir in "$modules_root"/*/; do | ||
| [[ -d $modules_dir ]] || continue | ||
| pacman -Qo "$modules_dir" &>/dev/null || continue |
There was a problem hiding this comment.
Headers can hide kernel removal
If the running kernel package is removed but its separately installed headers still own /usr/lib/modules/<running-release>/, this ownership check treats the kernel as installed. The script then skips the kernel-update reboot prompt even though the kernel image is gone. Check the kernel package or image rather than ownership of the shared directory.
|
Fixed by #14447 on |
Summary
/usr/lib/modules/*/dirsvmlinuzso linux-aarch64 (Image) no longer always prompts rebootFixes #10048.
Verification
bash -n bin/omarchy-update-restart