]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
51-dracut-rescue.install: Don't install BLS fragment in /boot/efi on EFI
authorJavier Martinez Canillas <javierm@redhat.com>
Mon, 25 Jun 2018 11:12:08 +0000 (13:12 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 2 Jul 2018 10:28:04 +0000 (12:28 +0200)
For EFI systems, the BLS fragments were stored in the EFI System Partition
(ESP) while in non-EFI systems it was stored in /boot.

For consistency, it's better to always store the BLS fragments in the same
path regardless of the firmware interface used.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
51-dracut-rescue.install

index 26878929bec7a7c94471930d1d65c031b9c1a971..6ddafdb61408d8e0b580ce961eef5e00228dab55 100755 (executable)
@@ -71,10 +71,6 @@ if [[ -d "${BOOT_DIR_ABS%/*}" ]]; then
     INITRD="initrd"
 else
     BLS_DIR="/boot/loader/entries"
-    if [ -d /sys/firmware/efi ]; then
-       BLS_DIR="/boot/efi/EFI/${ID}/loader/entries"
-    fi
-
     BOOT_DIR_ABS="/boot"
     LOADER_ENTRY="$BLS_DIR/${MACHINE_ID}-0-rescue.conf"
     KERNEL="vmlinuz-0-rescue-${MACHINE_ID}"