Commit 74d65be
CLOS-2842: Cover centos/cloudlinux EFI paths in hybrid BIOS+UEFI handling
On hybrid BIOS+UEFI systems, AddUpgradeBootEntry must update both
/boot/grub2/grub.cfg AND the EFI-side grub.cfg, otherwise the upgrade
boot entry may not become the actual boot default. The actor only
checked /boot/efi/EFI/redhat/grub.cfg, which is the RHEL subdirectory.
CloudLinux 7 hybrid setups use /boot/efi/EFI/centos/grub.cfg (inherited
from CentOS); CloudLinux 8+ uses /boot/efi/EFI/cloudlinux/grub.cfg.
Neither was covered, so the EFI-side config went stale and reboot
landed on the old kernel - the failure mode in CLOS-2842 / ZD 226456
("stage 3 -> stage 3 loop"). The customer's manual fix in that ticket
explicitly regenerated /boot/efi/EFI/centos/grub.cfg, which is what we
now make the actor do automatically.
Extract the path detection into a tested helper and broaden the check
to redhat, centos, cloudlinux, almalinux (first match wins). Add
parametrized unit tests covering all six branches.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1667028
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 11effd9 commit 74d65be
3 files changed
Lines changed: 60 additions & 9 deletions
File tree
- repos/system_upgrade/common/actors/addupgradebootentry
- libraries
- tests
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
10 | 32 | | |
11 | 33 | | |
12 | 34 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
188 | 220 | | |
189 | 221 | | |
190 | 222 | | |
| |||
0 commit comments