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

grubby: the boot order is different then what grub2 reports

    • rhel-sst-desktop-firmware-bootloaders
    • ssg_display
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      After installing a self built kernel grubby reports a different boot order than what the grub2 menu shows. grubby shows the new kernel as the last boot loader entry vs. grub2 showing it as the first entry.

      1. grubby --info=ALL
        index=0
        kernel="/boot/vmlinuz-5.14.0-162.el9.x86_64"
        args="log_buf_len=16M intel_iommu=on iommu=pt iomem=relaxed net.ifnames=1 audit=0 loglevel=5 ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_intel-jacobsville-01-swap rd.lvm.lv=rhel_intel-jacobsville-01/root rd.lvm.lv=rhel_intel-jacobsville-01/swap nomodeset console=ttyS0,115200n81 $tuned_params"
        root="/dev/mapper/rhel_intel-jacobsville-01-root"
        initrd="/boot/initramfs-5.14.0-162.el9.x86_64.img $tuned_initrd"
        title="Red Hat Enterprise Linux (5.14.0-162.el9.x86_64) 9.0 (Plow)"
        id="1331f358a2384d59b56fff25c18f5a45-5.14.0-162.el9.x86_64"
        index=1
        kernel="/boot/vmlinuz-5.14.0-70.13.1.el9_0.x86_64"
        args="log_buf_len=16M intel_iommu=on iommu=pt iomem=relaxed net.ifnames=1 audit=0 loglevel=5 ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_intel-jacobsville-01-swap rd.lvm.lv=rhel_intel-jacobsville-01/root rd.lvm.lv=rhel_intel-jacobsville-01/swap nomodeset console=ttyS0,115200n81 $tuned_params"
        root="/dev/mapper/rhel_intel-jacobsville-01-root"
        initrd="/boot/initramfs-5.14.0-70.13.1.el9_0.x86_64.img $tuned_initrd"
        title="Red Hat Enterprise Linux (5.14.0-70.13.1.el9_0.x86_64) 9.0 (Plow)"
        id="1331f358a2384d59b56fff25c18f5a45-5.14.0-70.13.1.el9_0.x86_64"
        index=2
        kernel="/boot/vmlinuz-5.14.0+"
        args="log_buf_len=16M intel_iommu=on iommu=pt iomem=relaxed net.ifnames=1 audit=0 loglevel=5 ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_intel-jacobsville-01-swap rd.lvm.lv=rhel_intel-jacobsville-01/root rd.lvm.lv=rhel_intel-jacobsville-01/swap nomodeset console=ttyS0,115200n81 $tuned_params"
        root="/dev/mapper/rhel_intel-jacobsville-01-root"
        initrd="/boot/initramfs-5.14.0+.img $tuned_initrd"
        title="Red Hat Enterprise Linux (5.14.0+) 9.0 (Plow)"
        id="1331f358a2384d59b56fff25c18f5a45-5.14.0+"

      serial console grub output:
      Red Hat Enterprise Linux (5.14.0+) 9.0 (Plow)
      Red Hat Enterprise Linux (5.14.0-160.el9.x86_64) 9.0 (Plow)
      Red Hat Enterprise Linux (5.14.0-70.13.1.el9_0.x86_64) 9.0 (Plow)

      Use the ^ and v keys to change the selection.
      Press 'e' to edit the selected item, or 'c' for a command prompt.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1. install self built kernel "make modules_install ; make install"
      2. grubby --info=ALL
      3. reboot to see grub menu

      Actual results:
      grubby and grub2 have a different opinion about the boot entry order

      Expected results:
      grubby and grub2 have the same order for boot entries

              bootloader-eng-team bootloader -eng-team
              rhn-engineering-sassmann Stefan Assmann (Inactive)
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: