Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-98679

[RHEL 10 ] After a kernel package is installed, the new kernel entry in grub.cfg is missing the initrd line when GRUB_ENABLE_BLSCFG=false.

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-10.0.z
    • rhel-10.0
    • grub2
    • None
    • grub2-2.12-15.el10_0
    • No
    • Low
    • rhel-bootloader
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

      dnf install kernel kernel-core

      What is the impact of this issue to you?

      Due to missing initramfs line system fails to boot

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1. Change from GRUB_ENABLE_BLSCFG=true to GRUB_ENABLE_BLSCFG=false
      2. Regenerate the grub.cfg file # grub2-mkconfig -o /boot/grub2/grub.cfg
      3. Install new kernel

      Expected results

      grub.cfg should have initrd line as shown below

      menuentry 'Red Hat Enterprise Linux (6.12.0-55.17.1.el10_0.x86_64) 10.0 (Coughlan)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.12.0-55.17.1.el10_0.x86_64-advanced-a667a4d7-b2e3-47e5-b7b3-fcab316745d0' {
              load_video
              insmod gzio
              insmod part_gpt
              insmod xfs
              set root='hd0,gpt2'
              if [ x$feature_platform_search_hint = xy ]; then
                search --no-floppy --fs-uuid --set=root --hint='hd0,gpt2'  b2aff17a-c51a-4312-aad7-4eca24635dee
              else
                search --no-floppy --fs-uuid --set=root b2aff17a-c51a-4312-aad7-4eca24635dee
              fi
              echo    'Loading Linux 6.12.0-55.17.1.el10_0.x86_64 ...'
              linux   /vmlinuz-6.12.0-55.17.1.el10_0.x86_64 root=/dev/mapper/rhel-root ro crashkernel=2G-64G:256M,64G-:512M resume=UUID=cafe84df-6f35-4e79-a7d4-af2f796b2fb6 rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap 
      }       echo    'Loading initial ramdisk ...'
              initrd  /initramfs-6.12.0-55.17.1.el10_0.x86_64.img
       

      Actual results

      menuentry 'Red Hat Enterprise Linux (6.12.0-55.17.1.el10_0.x86_64) 10.0 (Coughlan)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-6.12.0-55.17.1.el10_0.x86_64-advanced-a667a4d7-b2e3-47e5-b7b3-fcab316745d0' {
              load_video
              insmod gzio
              insmod part_gpt
              insmod xfs
              set root='hd0,gpt2'
              if [ x$feature_platform_search_hint = xy ]; then
                search --no-floppy --fs-uuid --set=root --hint='hd0,gpt2'  b2aff17a-c51a-4312-aad7-4eca24635dee
              else
                search --no-floppy --fs-uuid --set=root b2aff17a-c51a-4312-aad7-4eca24635dee
              fi
              echo    'Loading Linux 6.12.0-55.17.1.el10_0.x86_64 ...'
              linux   /vmlinuz-6.12.0-55.17.1.el10_0.x86_64 root=/dev/mapper/rhel-root ro crashkernel=2G-64G:256M,64G-:512M resume=UUID=cafe84df-6f35-4e79-a7d4-af2f796b2fb6 rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap 
      } 

              bootloader-eng-team bootloader -eng-team
              rhn-support-prjagtap Pradeep Jagtap
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: