Commit ca192e2
Fix issue with GRUB defaulting to an old kernel
On some Rocky Linux 9 deployments, we are seeing GRUB defaulting to the
old kernel included in the DIB image, even after newer kernels have been
installed. This appears to be related to the presence of Boot Loader
Specification (BLS) entries with a machine ID lower in alphabetical
order than the current one:
[stack@host ~]$ sudo cat /etc/machine-id
cd3361a338fe47348de9937e51a7a4aa
[stack@host ~]$ sudo ls -l /boot/loader/entries/
total 20
-rw-r--r--. 1 root root 449 Mar 31 2023 104a42359fae41b687caac066397aec2-0-rescue.conf
-rw-r--r--. 1 root root 397 Mar 31 2023 104a42359fae41b687caac066397aec2-5.14.0-162.22.2.el9_1.x86_64.conf
-rw-r--r-- 1 root root 446 Jun 9 2023 cd3361a338fe47348de9937e51a7a4aa-0-rescue.conf
-rw-r--r-- 1 root root 422 Jun 9 2023 cd3361a338fe47348de9937e51a7a4aa-5.14.0-284.11.1.el9_2.x86_64.conf
-rw-r--r-- 1 root root 422 Jan 9 09:40 cd3361a338fe47348de9937e51a7a4aa-5.14.0-284.30.1.el9_2.x86_64.conf
Add a new `reset-bls-entries.yml` playbook which will rename existing
BLS entries using the current machine ID. This should prompt Grub to
pick the most recent kernel on next reboot.1 parent e1a64bd commit ca192e2
File tree
2 files changed
+46
-0
lines changed- etc/kayobe/ansible
- releasenotes/notes
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments