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

[RHEL-10][dracut] 50-dracut.install invoked by kernel-core fails on UKI system

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.2
    • rhel-10.2
    • dracut
    • No
    • Low
    • rhel-bootloader
    • 24
    • 1
    • Dev ack
    • False
    • False
    • Hide

      None

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

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

      Install kernel-core package on a UKI system yields below error

      dracut[F]: Can't write to /boot/efi/e197cbaa19ee496097a1122fb60e330a/6.12.0-122.el10.x86_64: Directory /boot/efi/e197cbaa19ee496097a1122fb60e330a/6.12.0-122.el10.x86_64 does not exist or is not accessible.
      /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
      warning: %posttrans(kernel-core-6.12.0-122.el10.x86_64) scriptlet failed, exit status 1

      Issue is in 50-dracut.install with extraneous quote signs

      + dracut -f --verbose --kernel-image /lib/modules/6.12.0-122.el10.x86_64/vmlinuz '' --kver 6.12.0-122.el10.x86_64 /boot/initramfs-6.12.0-122.el10.x86_64.img
      dracut[I]: Executing: /usr/bin/dracut -f --verbose --kernel-image /lib/modules/6.12.0-122.el10.x86_64/vmlinuz  --kver 6.12.0-122.el10.x86_64 /boot/initramfs-6.12.0-122.el10.x86_64.img
      dracut[F]: Can't write to /boot/efi/e197cbaa19ee496097a1122fb60e330a/6.12.0-122.el10.x86_64: Directory /boot/efi/e197cbaa19ee496097a1122fb60e330a/6.12.0-122.el10.x86_64 does not exist or is not accessible.

      Removing the quotes resolves the issue

      Please provide the package NVR for which bug is seen:

      dracut-107-3.el10

      How reproducible:

      Always

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      kernel-core should install successfully and initramfs should be generated under /boot.

      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:
              3 Start watching this issue

                Created:
                Updated: