← Back to team overview

curtin-dev team mailing list archive

[Merge] ~joalif/curtin:lp1906543 into curtin:master

 

Ioanna Alifieraki has proposed merging ~joalif/curtin:lp1906543 into curtin:master.

Requested reviews:
  curtin developers (curtin-dev)
Related bugs:
  Bug #1906543 in curtin: "MAAS fails to deploy RHEL images"
  https://bugs.launchpad.net/curtin/+bug/1906543

For more details, see:
https://code.launchpad.net/~joalif/curtin/+git/curtin/+merge/394774
-- 
Your team curtin developers is requested to review the proposed merge of ~joalif/curtin:lp1906543 into curtin:master.
diff --git a/curtin/commands/install_grub.py b/curtin/commands/install_grub.py
index 5f8311f..779714a 100644
--- a/curtin/commands/install_grub.py
+++ b/curtin/commands/install_grub.py
@@ -253,6 +253,8 @@ def gen_uefi_install_commands(grub_name, grub_target, grub_cmd, update_nvram,
         install_cmds.append(['dpkg-reconfigure', grub_name])
         install_cmds.append(['update-grub'])
     elif distroinfo.family == distro.DISTROS.redhat:
+        if bootid == 'rhel':
+            bootid = 'redhat'
         loader = find_efi_loader(target, bootid)
         if loader and update_nvram:
             grub_cmd = None  # don't install just add entry