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
- Do `dracut -f --kver "6.12.0-170.el10.x86_64"` in a UKI system.