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

Cannot install RHEL9 systems in UEFI on DDF containers

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.7
    • rhel-9.4
    • grub2
    • None
    • grub2-2.06-110.el9
    • None
    • Low
    • Upstream
    • rhel-bootloader
    • ssg_display
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • None

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

      Trying to install a system with RHEL9 and UEFI, which has its disks as a DDF container, the RPM scriptlet of grub2-common fails in error, causing the installation to fail:

      Error in POSTTRANS scriptlet in rpm package grub2-common
      

      After much investigation, the root cause is grub2-probe executing in the RPM scriptlet fails in error because it's not capable of detecting the DDF volume:

      # grub2-probe --target=fs_uuid /boot
      grub2-probe: error: ../grub-core/kern/disk.c:236:disk `mduuid/ae5ff76c9b96633df9ac83931903c2a9,1' not found.
      

      A workaround is to create /boot/grub2/device.map with mapping below:

      (hd0)     /dev/md126p2
      

      But such mapping cannot be created without much hacking during the installation phase, hence tagging this JIRA as Major.

      Please provide the package NVR for which bug is seen:

      grub2-tools-minimal-2.06-80.el9_4.x86_64

      How reproducible:

      Always

      Steps to reproduce (minimal reproducer)

      1. On a QEMU/KVM system, add 2 additional disks that will be used as a DDF Raid
      2. Create a DDF Raid on the disks, format it and mount it
        # yum -y install mdadm
        # mdadm --create /dev/md/ddf --name=ddf --level container --raid-disks=2 --metadata=ddf /dev/vdb /dev/vdc
        # mdadm --create /dev/md/Volume0 --name=Volume0 --level raid1 --raid-disks=2 /dev/md/ddf
        # mkfs.xfs /dev/md/Volume0
        # mount /dev/md/Volume0 /mnt
      3. Execute grub2-probe
        # grub2-probe --target=fs_uuid /mnt

      Expected results

      Some UUID being returned

      Actual results

      grub2-probe: error: ../grub-core/kern/disk.c:236:disk `mduuid/ae5ff76c9b96633df9ac83931903c2a9' not found.

              bootloader-eng-team bootloader -eng-team
              rhn-support-rmetrich Renaud Métrich
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: