Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1132868[details]
fuller report by jstancek
Description of problem:
When upgrading from regular 7.2 system to the nightly of http://download.eng.brq.redhat.com/nightly/RHEL-7.3-20160229.n.0/ my /boot/grub2/grub.cfg gets badly mangled. jstancek found this for me:
You start with RHEL7.2, new kernel is installed, then redhat-release-workstation is installed (you go from 7.2 to 7.3).
When all packages are installed, some kernel post install script runs and generates initrd. However grubby fails to update grub.cfg because title doesn't match (7.2 vs 7.3):
new_kernel_pkg --package kernel --mkinitrd --dracut --depmod --update 3.10.0-356.el7.x86_64
runs
/sbin/grubby --grub2 -c /boot/grub2/grub.cfg --update-kernel=/boot/vmlinuz-3.10.0-356.el7.x86_64 --initrd /boot/initramfs-3.10.0-356.el7.x86_64.img '--args= LANG=en_US.UTF-8' '--title=Red Hat Enterprise Linux Server (3.10.0-356.el7.x86_64) 7.3 (Maipo)' -> FAILS to add initrd line to grub.cfg
but in grub.cfg is:
menuentry 'Red Hat Enterprise Linux Server (3.10.0-356.el7.x86_64) 7.2 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-327.10.1.el7.x86_64-advanced-7669efd2-2832-4d5c-af6c-419a4c8db7cb' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 824f188c-8019-4ffa-bd17-ece8ff317df9
else
search --no-floppy --fs-uuid --set=root 824f188c-8019-4ffa-bd17-ece8ff317df9
fi
linux16 /vmlinuz-3.10.0-356.el7.x86_64 root=/dev/mapper/rhel_dell--pem520--03-root ro oops=panic crashkernel=auto rd.lvm.lv=rhel_dell-pem520-03/root rd.lvm.lv=rhel_dell-pem520-03/swap console=ttyS0,115200n81 LANG=en_US.UTF-8
}
Version-Release number of selected component (if applicable):
grubby-8.28-17.el7.x86_64
Comment 3Herton R. Krzesinski
2016-08-22 21:37:34 UTC
The description here points to the same issue as was discussed/fixed on bug 1289314, thus marking this one as duplicate. It's fixed on kernel package starting with version kernel-3.10.0-468.el7
*** This bug has been marked as a duplicate of bug 1289314 ***