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