2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>

* util/getroot.c (grub_util_get_grub_dev): Support partitionable
	arrays.
	* disk/raid.c (grub_raid_open): Likewise.
This commit is contained in:
jeroen 2007-05-17 23:23:03 +00:00
parent 1ecb6cf2b4
commit 260ba823e6
3 changed files with 56 additions and 7 deletions

View file

@ -1,7 +1,7 @@
/* raid.c - module to read RAID arrays. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2006 Free Software Foundation, Inc.
* Copyright (C) 2006, 2007 Free Software Foundation, Inc.
*
* GRUB is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -83,8 +83,7 @@ grub_raid_open (const char *name, grub_disk_t disk)
if (!array)
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "Unknown device");
/* FIXME: superblock version 1 supports partitions. */
disk->has_partitions = 0;
disk->has_partitions = 1;
disk->id = array->number;
disk->data = array;