Blame SOURCES/0481-Revert-Add-bootpath-device-to-the-list-967862.patch

f96e0b
From 902e78da8cda7fadd3841cbe5473d60e07229f1c Mon Sep 17 00:00:00 2001
f96e0b
From: Peter Jones <pjones@redhat.com>
f96e0b
Date: Wed, 12 Jun 2013 14:39:31 -0400
f96e0b
Subject: [PATCH 481/482] Revert "Add bootpath device to the list" (#967862)
f96e0b
f96e0b
commit c6e8465f fixes this issue.
f96e0b
f96e0b
This reverts commit a2780be06f7de35a0dd4cc19a68b151176707ae7.
f96e0b
---
f96e0b
 grub-core/disk/ieee1275/ofdisk.c | 32 --------------------------------
f96e0b
 1 file changed, 32 deletions(-)
f96e0b
f96e0b
diff --git a/grub-core/disk/ieee1275/ofdisk.c b/grub-core/disk/ieee1275/ofdisk.c
f96e0b
index a940771..2a31ecd 100644
f96e0b
--- a/grub-core/disk/ieee1275/ofdisk.c
f96e0b
+++ b/grub-core/disk/ieee1275/ofdisk.c
f96e0b
@@ -229,10 +229,6 @@ dev_iterate (const struct grub_ieee1275_devalias *alias)
f96e0b
 static void
f96e0b
 scan (void)
f96e0b
 {
f96e0b
-  char *bootpath;
f96e0b
-  int bootpath_size;
f96e0b
-  char *type;
f96e0b
-
f96e0b
   struct grub_ieee1275_devalias alias;
f96e0b
   FOR_IEEE1275_DEVALIASES(alias)
f96e0b
     {
f96e0b
@@ -243,34 +239,6 @@ scan (void)
f96e0b
 
f96e0b
   FOR_IEEE1275_DEVCHILDREN("/", alias)
f96e0b
     dev_iterate (&alias);
f96e0b
-
f96e0b
-  if (grub_ieee1275_get_property_length (grub_ieee1275_chosen, "bootpath",
f96e0b
-					 &bootpath_size)
f96e0b
-      || bootpath_size <= 0)
f96e0b
-    {
f96e0b
-      /* Should never happen.  */
f96e0b
-      grub_printf ("/chosen/bootpath property missing!\n");
f96e0b
-      return;
f96e0b
-    }
f96e0b
-
f96e0b
-  bootpath = (char *) grub_malloc ((grub_size_t) bootpath_size + 64);
f96e0b
-  if (! bootpath)
f96e0b
-    {
f96e0b
-      grub_print_error ();
f96e0b
-      return;
f96e0b
-    }
f96e0b
-  grub_ieee1275_get_property (grub_ieee1275_chosen, "bootpath", bootpath,
f96e0b
-                              (grub_size_t) bootpath_size + 1, 0);
f96e0b
-  bootpath[bootpath_size] = '\0';
f96e0b
-
f96e0b
-  type = grub_ieee1275_get_device_type (bootpath);
f96e0b
-  if (type && grub_strcmp (type, "block") == 0)
f96e0b
-      dev_iterate_real (bootpath, bootpath);
f96e0b
-
f96e0b
-  grub_free (bootpath);
f96e0b
-
f96e0b
-  grub_devalias_iterate (dev_iterate_alias);
f96e0b
-  grub_children_iterate ("/", dev_iterate);
f96e0b
 }
f96e0b
 
f96e0b
 static int
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b