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

search device by fs-uuid may fail if --hint-baremetal is present

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • grub2
    • None
    • None
    • rhel-bootloader
    • ssg_display
    • 2
    • False
    • False
    • Hide

      None

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

      Description of problem:

      $root is expected to be `hd0,gpt2` on this installation. But during mkconfig, $root is generated as `hd1,gpt2` because of the disorder of disks. I expected the `search` function would return the proper root for me. But `search` does not work if `--hint-baremetal` is added.

      • `search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd1,gpt2' XXX` failed.
      • `search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint='hd1,gpt2' XXX` worked.

      The machine product is Huawei Tecal RH2288H V2-12L.

      System boots in Legacy BIOS mode.

      Version-Release number of selected component (if applicable):
      grub2-pc-2.06-46.el9.x86_64

      How reproducible:
      Always.

      Steps to Reproduce:
      1. Edit /boot/grub2/grub.cfg, change `set root='hd0,gpt2'` to `set root='hd1,gpt2'`
      2. reboot

      Actual results:
      The system failed to boot.

      Expected results:
      The system succeeded to boot.

      Additional info:

      On another machine of the same machine product, there is similar but different issue:

      • `search --no-floppy --fs-uuid --set=root XXX` failed.
      • `search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 XXXX` worked.
      • `search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-baremetal=ahci0,gpt2 XXXX` failed.
      • `search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd1,gpt2' XXXX` worked.

              bootloader-eng-team bootloader -eng-team
              ruibin.li Rui Bin Li (Inactive)
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: