2008-06-16 Robert Millan <rmh@aybabtu.com>

* util/biosdisk.c (convert_system_partition_to_system_disk): Detect
        I2O devices.
        Patch from Sven Mueller <sven@debian.org>.
This commit is contained in:
robertmh 2008-06-16 20:45:21 +00:00
parent 991477f8a7
commit 347396d87f
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-06-16 Robert Millan <rmh@aybabtu.com>
* util/biosdisk.c (convert_system_partition_to_system_disk): Detect
I2O devices.
Patch from Sven Mueller <sven@debian.org>.
2008-06-16 Robert Millan <rmh@aybabtu.com>
* util/update-grub.in: Check for $EUID instead of $UID.

View file

@ -657,6 +657,14 @@ convert_system_partition_to_system_disk (const char *os_dev)
return path;
}
/* If this is an I2O disk. */
if (strncmp ("i2o/hd", p, sizeof ("i2o/hd") - 1) == 0)
{
/* /dev/i2o/hd[a-z]([0-9]+)? */
p[sizeof ("i2o/hda") - 1] = '\0';
return path;
}
/* If this is a MultiMediaCard (MMC). */
if (strncmp ("mmcblk", p, sizeof ("mmcblk") - 1) == 0)
{