Blame SOURCES/0239-Don-t-guess-boot-efi-as-on-ppc-machines.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Peter Jones <pjones@redhat.com>
f725e3
Date: Thu, 20 Apr 2017 13:29:06 -0400
f725e3
Subject: [PATCH] Don't guess /boot/efi/ as  on ppc machines
f725e3
f725e3
This should never be trying this, and since we've consolidated the
f725e3
grubenv to always be on /boot/efi/EFI/redhat/, this code causes it to
f725e3
always make the wrong decision.
f725e3
f725e3
Resolves: rhbz#1443809
f725e3
f725e3
Signed-off-by: Peter Jones <pjones@redhat.com>
f725e3
---
f725e3
 util/grub-install.c | 12 +-----------
f725e3
 1 file changed, 1 insertion(+), 11 deletions(-)
f725e3
f725e3
diff --git a/util/grub-install.c b/util/grub-install.c
f725e3
index 7d61c32be2f..947a2d2ddf5 100644
f725e3
--- a/util/grub-install.c
f725e3
+++ b/util/grub-install.c
f725e3
@@ -1151,18 +1151,8 @@ main (int argc, char *argv[])
f725e3
 	  char *d;
f725e3
 
f725e3
 	  is_guess = 1;
f725e3
-	  d = grub_util_path_concat (2, bootdir, "macppc");
f725e3
-	  if (!grub_util_is_directory (d))
f725e3
-	    {
f725e3
-	      free (d);
f725e3
-	      d = grub_util_path_concat (2, bootdir, "efi");
f725e3
-	    }
f725e3
 	  /* Find the Mac HFS(+) System Partition.  */
f725e3
-	  if (!grub_util_is_directory (d))
f725e3
-	    {
f725e3
-	      free (d);
f725e3
-	      d = grub_util_path_concat (2, bootdir, "EFI");
f725e3
-	    }
f725e3
+	  d = grub_util_path_concat (2, bootdir, "macppc");
f725e3
 	  if (!grub_util_is_directory (d))
f725e3
 	    {
f725e3
 	      free (d);