Blame SOURCES/0070-Don-t-guess-boot-efi-as-HFS-on-ppc-machines-in-grub-.patch

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