Merge ~igorgnip/curtin:fix/rocky9-legacy-boot into curtin:master

Proposed by Igor Gnip
Status: Merged
Approved by: Dan Bungert
Approved revision: 2eb0d38caeee70a9df25817d2b6be26cf55ea1ae
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~igorgnip/curtin:fix/rocky9-legacy-boot
Merge into: curtin:master
Diff against target: 22 lines (+2/-2)
1 file modified
curtin/commands/install_grub.py (+2/-2)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
curtin developers Pending
Review via email: mp+431507@code.launchpad.net

Commit message

Allow Rocky 9 in legacy boot mode.

Description of the change

Allow Rocky 9 in legacy boot mode.

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/curtin/commands/install_grub.py b/curtin/commands/install_grub.py
2index 74ffdf1..79b6695 100644
3--- a/curtin/commands/install_grub.py
4+++ b/curtin/commands/install_grub.py
5@@ -74,7 +74,7 @@ def get_grub_package_name(target_arch, uefi, rhel_ver=None):
6 elif target_arch == 'x86_64':
7 if rhel_ver == '6':
8 grub_name = 'grub'
9- elif rhel_ver in ['7', '8']:
10+ elif rhel_ver in ['7', '8', '9']:
11 grub_name = 'grub2-pc'
12 else:
13 raise ValueError('Unsupported RHEL version: %s', rhel_ver)
14@@ -316,7 +316,7 @@ def gen_install_commands(grub_name, grub_cmd, distroinfo, devices,
15 install_cmds.append(['dpkg-reconfigure', grub_name])
16 install_cmds.append(['update-grub'])
17 elif distroinfo.family == distro.DISTROS.redhat:
18- if rhel_ver in ["7", "8"]:
19+ if rhel_ver in ["7", "8", "9"]:
20 post_cmds.append(
21 ['grub2-mkconfig', '-o', '/boot/grub2/grub.cfg'])
22 else:

Subscribers

People subscribed via source and target branches