curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #01136
[Bug 1906543] [NEW] MAAS fails to deploy RHEL images
Public bug reported:
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=/boot/efi --bootloader-id=rhel --recheck --no-nvram"
but it should be :
"grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=redhat --recheck --no-nvram"
The bootloader-id is set to "rhel" because curtin reads the ID field of /etc/os-release file.
For more info look at https://git.launchpad.net/curtin/tree/curtin/commands/install_grub.py#n250 and
https://git.launchpad.net/curtin/tree/curtin/distro.py#n116
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="grub2-install"
# 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/commands/install_grub.py and the above bit was left outside.
** Affects: curtin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of curtin
developers, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1906543
Title:
MAAS fails to deploy RHEL images
Status in curtin:
New
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=/boot/efi --bootloader-id=rhel --recheck --no-nvram"
but it should be :
"grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=redhat --recheck --no-nvram"
The bootloader-id is set to "rhel" because curtin reads the ID field of /etc/os-release file.
For more info look at https://git.launchpad.net/curtin/tree/curtin/commands/install_grub.py#n250 and
https://git.launchpad.net/curtin/tree/curtin/distro.py#n116
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="grub2-install"
# 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/commands/install_grub.py and the above bit was left outside.
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1906543/+subscriptions