]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Remove part_ prefix
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 6 Feb 2010 18:33:53 +0000 (19:33 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 6 Feb 2010 18:33:53 +0000 (19:33 +0100)
13 files changed:
loader/i386/pc/chainloader.c
partmap/acorn.c
partmap/amiga.c
partmap/apple.c
partmap/bsdlabel.c
partmap/gpt.c
partmap/msdos.c
partmap/sun.c
parttool/msdospart.c
util/grub-install.in
util/i386/efi/grub-install.in
util/i386/pc/grub-setup.c
util/ieee1275/grub-install.in

index 935f5a6d166cd0a28f8c2cb55af0816513fb8c5c..502031d0e5b5299331b4109bdac88edbc229c230 100644 (file)
@@ -105,7 +105,7 @@ grub_chainloader_cmd (const char *filename, grub_chainloader_flags_t flags)
        {
          grub_partition_t p = disk->partition;
 
-         if (p && grub_strcmp (p->partmap->name, "part_msdos") == 0)
+         if (p && grub_strcmp (p->partmap->name, "msdos") == 0)
            {
              disk->partition = p->parent;
              grub_disk_read (disk, p->offset, 446, 64,
index 12ef9c7818da82b3d0c8937502e5cac3838927a0..0c3abf11d27c3e9a88e4c5734a6a80f791fa5ba8 100644 (file)
@@ -131,7 +131,7 @@ acorn_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_acorn_partition_map =
 {
-  .name = "part_acorn",
+  .name = "acorn",
   .iterate = acorn_partition_map_iterate,
 };
 
index 2c6a5afa2dd5aac15a2eb5a478357841758eb24d..5b6a4598f5359485512c5aca19aaad20e34d9a3b 100644 (file)
@@ -138,7 +138,7 @@ amiga_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_amiga_partition_map =
   {
-    .name = "part_amiga",
+    .name = "amiga",
     .iterate = amiga_partition_map_iterate,
   };
 
index 40c59f517c1d24ccb5b01bd930c13cbc00e7bf66..35bdcc8d7fc8efef68e78a57739316e58d834db2 100644 (file)
@@ -182,7 +182,7 @@ apple_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_apple_partition_map =
   {
-    .name = "part_apple",
+    .name = "apple",
     .iterate = apple_partition_map_iterate,
   };
 
index 861388164b48494344ed9cd2695d770c23eae91a..f4df7e1fa775c14ddc810279368316f697658fe3 100644 (file)
@@ -82,7 +82,7 @@ bsdlabel_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_bsdlabel_partition_map =
   {
-    .name = "part_bsd",
+    .name = "bsd",
     .iterate = bsdlabel_partition_map_iterate,
   };
 
index 922a7303b7d03109f429c188c51c5b87c20c137f..2c942e164b4aa7faa6efdd7826f386b1b7f9d7db 100644 (file)
@@ -119,7 +119,7 @@ gpt_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_gpt_partition_map =
   {
-    .name = "part_gpt",
+    .name = "gpt",
     .iterate = gpt_partition_map_iterate,
   };
 
index 0fbf7ef3d6741f43afeeda35bc2dabb36aa5ac9a..accf3fdbadbed8106a73f48c89389e20bc93328f 100644 (file)
@@ -138,7 +138,7 @@ pc_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_msdos_partition_map =
   {
-    .name = "part_msdos",
+    .name = "msdos",
     .iterate = pc_partition_map_iterate,
   };
 
index ff01d10189609a32eaf0d35b21ec582586be418d..6f8945026ec5757eab362420df0bc123da3ff728 100644 (file)
@@ -137,7 +137,7 @@ sun_partition_map_iterate (grub_disk_t disk,
 /* Partition map type.  */
 static struct grub_partition_map grub_sun_partition_map =
   {
-    .name = "part_sun",
+    .name = "sun",
     .iterate = sun_partition_map_iterate,
   };
 
index b1fe689f482e9bf9d9440813d8b1435a7483dd5a..57921f35fc3650885e4641f838c911c2daa3ba63 100644 (file)
@@ -140,10 +140,10 @@ static grub_err_t grub_pcpart_type (const grub_device_t dev,
 
 GRUB_MOD_INIT (pcpart)
 {
-  activate_table_handle = grub_parttool_register ("part_msdos",
+  activate_table_handle = grub_parttool_register ("msdos",
                                                  grub_pcpart_boot,
                                                  grub_pcpart_bootargs);
-  type_table_handle = grub_parttool_register ("part_msdos",
+  type_table_handle = grub_parttool_register ("msdos",
                                              grub_pcpart_type,
                                              grub_pcpart_typeargs);
 
index bb323d7062e9e34233d389df34a654889f117095..6672067b7590a2edc6552c07b8808566a1034587 100644 (file)
@@ -287,7 +287,10 @@ fi
 # Then the partition map module.  In order to support partition-less media,
 # this command is allowed to fail (--target=fs already grants us that the
 # filesystem will be accessible).
-partmap_module=`$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`
+partmap_module=
+for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
+   partmap_module="$partmap_module part_$x";
+done
 
 # Device abstraction module, if any (lvm, raid).
 devabstraction_module=`$grub_probe --target=abstraction --device ${grub_device}`
index caa7be7e4fd4ca241557a1faca36ce54df78783c..b04bc59bd0d7f77b4eb749a3109cf5ee8faabd0b 100644 (file)
@@ -194,7 +194,10 @@ fi
 # Then the partition map module.  In order to support partition-less media,
 # this command is allowed to fail (--target=fs already grants us that the
 # filesystem will be accessible).
-partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} 2> /dev/null`
+partmap_module=
+for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
+   partmap_module="$partmap_module part_$x";
+done
 
 # Device abstraction module, if any (lvm, raid).
 devabstraction_module=`$grub_probe --target=abstraction --device-map=${device_map} ${grubdir}`
index 15351ca5a3bd24e6dc942132f67c57019478050c..27c9cd4343534478c618001835854cb1699ca8a3 100644 (file)
@@ -343,16 +343,16 @@ setup (const char *dir,
       goto unable_to_embed;
     }
 
-  if (strcmp (dest_partmap, "part_msdos") == 0)
+  if (strcmp (dest_partmap, "msdos") == 0)
     grub_partition_iterate (dest_dev->disk, find_usable_region_msdos);
-  else if (strcmp (dest_partmap, "part_gpt") == 0)
+  else if (strcmp (dest_partmap, "gpt") == 0)
     grub_partition_iterate (dest_dev->disk, find_usable_region_gpt);
   else
     grub_util_error (_("No DOS-style partitions found"));
 
   if (embed_region.end == embed_region.start)
     {
-      if (! strcmp (dest_partmap, "part_msdos"))
+      if (! strcmp (dest_partmap, "msdos"))
        grub_util_warn (_("This msdos-style partition label has no post-MBR gap; embedding won't be possible!"));
       else
        grub_util_warn (_("This GPT partition label has no BIOS Boot Partition; embedding won't be possible!"));
index 97c485d5587d8edae5a40417c91dfa9a76766fdb..be4053542440d4c2ce7d6fdf2feb93fdfa6aed21 100644 (file)
@@ -179,7 +179,10 @@ fi
 # Then the partition map module.  In order to support partition-less media,
 # this command is allowed to fail (--target=fs already grants us that the
 # filesystem will be accessible).
-partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} 2> /dev/null`
+partmap_module=
+for x in `$grub_probe --target=partmap --device ${grub_device} 2> /dev/null`; do
+   partmap_module="$partmap_module part_$x";
+done
 
 # Device abstraction module, if any (lvm, raid).
 devabstraction_module=`$grub_probe --target=abstraction --device-map=${device_map} ${grubdir}`