MAAS fails to deploy RHEL images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The root cause of this issue is that curtin sets the worng --bootloader-id parameter for the grub2-install command.
The command that curtin builds is :
"grub2-install --target=x86_64-efi --efi-directory
but it should be :
"grub2-install --target=x86_64-efi --efi-directory
The bootloader-id is set to "rhel" because curtin reads the ID field of /etc/os-release file.
For more info look at https:/
https:/
However RHEL ditros use redhat instead of the os_variant rhel for the bootid.
This was resolved in helpers/common install_grub command the following way :
centos|redhat|rhel)
grubcmd=
# RHEL uses redhat instead of the os_variant rhel for the bootid.
if [ "$bootid" = "rhel" ]; then
bootid="redhat"
fi
Commit 7310b4fe61465 (Replace grub-shell-helper with install_grub command)
replaces the shell install_grub command from helpers/common with the equivalent
in curtin/
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Michael Hudson-Doyle: Approve
-
Diff: 94 lines (+13/-11)2 files modifiedcurtin/commands/install_grub.py (+3/-0)
tests/unittests/test_commands_install_grub.py (+10/-11)
Thanks for filing the bug. The detail provided makes this an easy to fix bug.