{
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,
/* Partition map type. */
static struct grub_partition_map grub_acorn_partition_map =
{
- .name = "part_acorn",
+ .name = "acorn",
.iterate = acorn_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_amiga_partition_map =
{
- .name = "part_amiga",
+ .name = "amiga",
.iterate = amiga_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_apple_partition_map =
{
- .name = "part_apple",
+ .name = "apple",
.iterate = apple_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_bsdlabel_partition_map =
{
- .name = "part_bsd",
+ .name = "bsd",
.iterate = bsdlabel_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_gpt_partition_map =
{
- .name = "part_gpt",
+ .name = "gpt",
.iterate = gpt_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_msdos_partition_map =
{
- .name = "part_msdos",
+ .name = "msdos",
.iterate = pc_partition_map_iterate,
};
/* Partition map type. */
static struct grub_partition_map grub_sun_partition_map =
{
- .name = "part_sun",
+ .name = "sun",
.iterate = sun_partition_map_iterate,
};
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);
# 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}`
# 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}`
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!"));
# 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}`