2006-09-21 Robert Millan <rmh@aybabtu.com>
Import from GRUB Legacy (lib/device.c): * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function. (init_device_map) [__linux__]: Add support for I2O devices.
This commit is contained in:
parent
78fa179013
commit
209bf7ac33
2 changed files with 29 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-09-21 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
|
Import from GRUB Legacy (lib/device.c):
|
||||||
|
* util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
|
||||||
|
(init_device_map) [__linux__]: Add support for I2O devices.
|
||||||
|
|
||||||
2006-09-14 Marco Gerards <marco@gnu.org>
|
2006-09-14 Marco Gerards <marco@gnu.org>
|
||||||
|
|
||||||
* conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
|
* conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
|
||||||
|
|
|
@ -277,6 +277,12 @@ get_ataraid_disk_name (char *name, int unit)
|
||||||
{
|
{
|
||||||
sprintf (name, "/dev/ataraid/d%c", unit + '0');
|
sprintf (name, "/dev/ataraid/d%c", unit + '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
get_i2o_disk_name (char *name, char unit)
|
||||||
|
{
|
||||||
|
sprintf (name, "/dev/i2o/hd%c", unit);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Check if DEVICE can be read. If an error occurs, return zero,
|
/* Check if DEVICE can be read. If an error occurs, return zero,
|
||||||
|
@ -482,6 +488,23 @@ make_device_map (const char *device_map, int floppy_disks)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This is for I2O - we have /dev/i2o/hd<logical drive><partition> */
|
||||||
|
{
|
||||||
|
char unit;
|
||||||
|
|
||||||
|
for (unit = 'a'; unit < 'f'; unit++)
|
||||||
|
{
|
||||||
|
char name[24];
|
||||||
|
|
||||||
|
get_i2o_disk_name (name, unit);
|
||||||
|
if (check_device (name))
|
||||||
|
{
|
||||||
|
fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
|
||||||
|
num_hd++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif /* __linux__ */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
|
|
Loading…
Reference in a new issue