nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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