In mkinitcpio this is as simple as setting in /etc/mkinitcpio.d/linux.preset:
default_uki="/efi/EFI/Linux/new-uki-path.efi"
I couldn't find a similar option in dracut.
According to man dracut.conf
uefi="{yes|no}"
Instead of creating an initramfs image, dracut will create an UEFI executable, which can be executed by an UEFI BIOS (default=no). The default output filename is
<EFI>/EFI/Linux/linux-$kernel$-<MACHINE_ID>-<BUILD_ID>.efi. <EFI> might be /efi, /boot or /boot/efi depending on where the ESP partition is mounted. The <BUILD_ID> is taken from BUILD_ID in /usr/lib/os-release or
if it exists /etc/os-release and is left out, if BUILD_ID is non-existent or empty.
However, it doesn't specify how to change the default output filename.
In
mkinitcpio
this is as simple as setting in/etc/mkinitcpio.d/linux.preset
:I couldn't find a similar option in dracut.
According to
man dracut.conf
However, it doesn't specify how to change the default output filename.