Skip to contentSkip to conversation

Default initramfs location

DISCUSSION Ian Pilcher 2 participants 2 messages Jul 14, 2020 – Jul 15, 2020

lore
Share & tools
lore
#0 lore raw

I've recently migrated one of my systems from GRUB to systemd-boot. As a result my initramfs is no longer at /boot/initramfs-$(uname -r).img.

Instead, it is at /efi/$(cat /etc/machine-id)/$(uname -r)/initrd.

dracut is still using the old location by default. (For example, if I rebuild the initramfs with 'dracut -f', dracut writes the new file at it's "traditional" location under /boot.)

Is there a configuration option that I can set to make dracut use the systemd-boot location (or some other way to do it)?

Thanks!

Signature · 3 lines
========================================================================
                 In Soviet Russia, Google searches you!
========================================================================
#1 lore raw

14.07.2020 21:35, Ian Pilcher пишет:

Quoted 5 lines

I've recently migrated one of my systems from GRUB to systemd-boot.  As a result my initramfs is no longer at /boot/initramfs-$(uname -r).img.

Instead, it is at /efi/$(cat /etc/machine-id)/$(uname -r)/initrd.

Quoted 9 lines

dracut is still using the old location by default.  (For example, if I rebuild the initramfs with 'dracut -f', dracut writes the new file at it's "traditional" location under /boot.)

Is there a configuration option that I can set to make dracut use the systemd-boot location (or some other way to do it)?

Thanks!

If you use --uefi parameter dracut defaults to \EFI\Linux\linix-$kernel-$MACHINE_ID-$BUILD_ID.efi (where BUILD_ID is from /etc/os-release if present).