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

[RHEL-10][dracut] dracut fails to find appropriate initrd destination in UKI system

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-10.2
    • dracut
    • None
    • Low
    • rhel-bootloader
    • 3
    • False
    • False
    • Hide

      None

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

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

      Omitting the destination of initrd will fail like this in UKI system:

      # dracut -f --kver "6.12.0-170.el10.x86_64"
      dracut[F]: Can't write to /boot/efi/7e4aadb234404e03b2b73397b38a16d0/6.12.0-170.el10.x86_64: Directory /boot/efi/7e4aadb234404e03b2b73397b38a16d0/6.12.0-170.el10.x86_64 does not exist or is not accessible. 

      Problem is around https://github.com/redhat-plumbers/dracut-rhel10/blob/main/dracut.sh#L1202

      The path "/boot/efi/${MACHINE_ID}/${kernel}/initrd" is likely unusable by grub anyway. So its existence needs checking. And probably falls back to /boot/initramfs...img.

      What is the impact of this issue to you?

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

      dracut-107-3.el10.x86_64

      How reproducible is this bug?:

      Steps to reproduce

      1. Do `dracut -f --kver "6.12.0-170.el10.x86_64"` in a UKI system.
      2.  
      3.  

      Expected results

      Actual results

              pvalena@redhat.com Pavel Valena
              litian@redhat.com Li Tian
              bootloader -eng-team bootloader -eng-team
              RHEL CS Plumbers QE Bot RHEL CS Plumbers QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: