dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0141-BLS-Fix-grub2-switch-to-blscfg-on-non-EFI-machines.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Jan Hlavac <jhlavac@redhat.com>
d9d99f
Date: Tue, 10 Apr 2018 16:07:36 +0200
d9d99f
Subject: [PATCH] BLS: Fix grub2-switch-to-blscfg on non-EFI machines
d9d99f
d9d99f
On the non-EFI machines the grub2-switch-to-blscfg script places the BLS
d9d99f
snippets into the /boot directory. But the right location is
d9d99f
/boot/loader/entries.
d9d99f
---
d9d99f
 util/grub-switch-to-blscfg.in | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/util/grub-switch-to-blscfg.in b/util/grub-switch-to-blscfg.in
d9d99f
index 3ae5e4ea8d0..f740b8f4d03 100644
d9d99f
--- a/util/grub-switch-to-blscfg.in
d9d99f
+++ b/util/grub-switch-to-blscfg.in
d9d99f
@@ -44,7 +44,7 @@ if [ -d /sys/firmware/efi/efivars/ ]; then
d9d99f
 else
d9d99f
     startlink=/etc/grub2.cfg
d9d99f
     grubdir=`echo "/@bootdirname@/@grubdirname@" | sed 's,//*,/,g'`
d9d99f
-    blsdir=`echo "/@bootdirname@" | sed 's,//*,/,g'`
d9d99f
+    blsdir=`echo "/@bootdirname@/loader/entries" | sed 's,//*,/,g'`
d9d99f
 fi
d9d99f
 
d9d99f
 backupsuffix=.bak