dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
573 stars 396 forks source link

Specify UKI output path in dracut.conf #2619

Open avidseeker opened 5 months ago

avidseeker commented 5 months ago

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.