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