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

grub2-reboot doesn't check requested entry exists

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

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • grub2
    • None
    • None
    • Low
    • rhel-bootloader
    • ssg_display
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      Affected version grub2-2.06-80.el9 tested on ppc64le

      • install RHEL-9.5 (I used RHEL-9.5.0-20240603.60)
      • check grubenv content grub2-editenv list
        it should contain empty "next_entry=" line
      • run grub2-reboot foobar (replace foobar with a non-existent boot entry title, if needed)
      • check command exit code echo $?
      • check grubenv content grub2-editenv list

      Actual result:

      • exit code 0
      • grubenv contains next_entry=foobar line

      Expected result:

      • grub2 exits with non-zero exit code
      • error message stating the requested boot entry does not exists is printed
      • no changes to grubenv

              bootloader-eng-team bootloader -eng-team
              pjanda@redhat.com Petr Janda
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: