Grub is first removed and then installed during RHEL image building. The
grub2 package typically requires the same version of grub2-tools, so if
we just remove and install the grub2 package, the installation can
potentially fail on being out of sync with grub2-tools version. Removing
and reinstalling both packages fixes this issue. Those packages are
already in package map for RHEL as "grub-pc", so we can use this alias.
Reviewed: https:/ /review. openstack. org/375430 /git.openstack. org/cgit/ openstack/ diskimage- builder/ commit/ ?id=93425d14ce2 51139e0518a3a95 33506dd1615f97
Committed: https:/
Submitter: Jenkins
Branch: master
commit 93425d14ce25113 9e0518a3a953350 6dd1615f97
Author: Jiri Stransky <email address hidden>
Date: Fri Sep 23 14:09:02 2016 +0200
Fix grub installation for RHEL
Grub is first removed and then installed during RHEL image building. The
grub2 package typically requires the same version of grub2-tools, so if
we just remove and install the grub2 package, the installation can
potentially fail on being out of sync with grub2-tools version. Removing
and reinstalling both packages fixes this issue. Those packages are
already in package map for RHEL as "grub-pc", so we can use this alias.
Change-Id: Iefd9c17fffd43d e3fea260510ad21 8b1322eecb3
Closes-Bug: #1627000