Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default UKI and initramfs filenames #2537

Open
avidseeker opened this issue Oct 23, 2023 · 1 comment
Open

Change default UKI and initramfs filenames #2537

avidseeker opened this issue Oct 23, 2023 · 1 comment
Labels
enhancement Issue adding new functionality

Comments

@avidseeker
Copy link

According to the manpage:

--uefi
   Instead of creating an initramfs image, dracut will create an UEFI
   executable, which can be executed by an UEFI BIOS. 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-existant or
   empty.

"The default output filename" suggests that there is a way to change the output filename, but I couldn't find it in the man page.

It would be useful to have a dracut.conf option to set a fixed name of UKI, since the EFI stub entry in nvram should be fixed:

efibootmgr -cd /dev/sda -p1 -L ARCH -l '\EFI\fixed\path\to\uki'

The same applies for initramfs (without UKI). For example, pacman hooks for mkinicpio install a fixed filename for linux, linux-lts, linux-zen kernels, making it possible to have a command like:

efibootmgr -cd /dev/sda -p1 -L ARCH -l '\EFI\arch\initramfs-linux.img' -u 'initrd=\EFI\arch\vmlinuz-linux'

Assuming \EFI\arch is mounted in \boot.

@avidseeker avidseeker added the enhancement Issue adding new functionality label Oct 23, 2023
@aafeijoo-suse
Copy link
Member

Do you mean #2020? It was rejected back then...
The duplicate issue was also closed #1926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue adding new functionality
Projects
None yet
Development

No branches or pull requests

2 participants