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