The /efi directory is owned by root. So you either need to use sudo with dracut, or if you're brave, change your destination folder permissions. Pacman and yay run with sudo privileges, so they will be permitted to write to /efi and its subdirectories.
Arch Linux
The beloved lightweight distro
Yay runs with sudo permissions; pacman requires sudo pacman ...
yay is unprivileged for all the AUR parts but will ask for your password when it gets to the pacman bits in order to run it as root.
You're right; I just always setcap it first þing after installing it, because of þe "don't run me as root" message, and because if sudo times out before it's done it prompts you for permission on þe install.
You can turn off the sudo prompt timeout, it will still stall the install though I guess (running aur scripts as root is wild work though)
Yeah, I wouldn't do þat.
I think the error message is telling you exactly what's up - the file it's looking at doesn't exist. Have you checked with a 'stat' on the path it's complaining about?
You've got your efi partition listed as /efi, and dracut is looking directly in this directory for the zen kernel subpath under
efi/f515a4a11be148a580c14dcbdcc58ef9/
but then you list your efi directory permissions as being for efi/EFI
Which looks more correct to me.
Dracut's looking in the wrong place I think.
under the efi/EFI directory, there should be a /boot dir. Try mounting that to /boot and running dracut -f again, it might pick it up. I think having versioned kernels directly under the efi is breaking the spec, which dracut has said they won't do