From 347396d87f1b58744f216c17104b27322fe87777 Mon Sep 17 00:00:00 2001 From: robertmh Date: Mon, 16 Jun 2008 20:45:21 +0000 Subject: [PATCH] 2008-06-16 Robert Millan * util/biosdisk.c (convert_system_partition_to_system_disk): Detect I2O devices. Patch from Sven Mueller . --- ChangeLog | 6 ++++++ util/biosdisk.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2ef74c20f..685d081dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-16 Robert Millan + + * util/biosdisk.c (convert_system_partition_to_system_disk): Detect + I2O devices. + Patch from Sven Mueller . + 2008-06-16 Robert Millan * util/update-grub.in: Check for $EUID instead of $UID. diff --git a/util/biosdisk.c b/util/biosdisk.c index 90df4f1ef..d78a69f77 100644 --- a/util/biosdisk.c +++ b/util/biosdisk.c @@ -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) {