summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/grub-gfx/i2o.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-09-20 03:14:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-09-20 03:14:50 (GMT)
commit2bf905c893bac50e2536ad24e6ee5a1eac7d6da8 (patch)
tree8dbd46664b72c30f54a0d64c0b96b4abf21d62c8 /abs/core-testing/grub-gfx/i2o.patch
parent3e1a777d29092423b45330c8190434ac345f91eb (diff)
downloadlinhes_pkgbuild-2bf905c893bac50e2536ad24e6ee5a1eac7d6da8.zip
linhes_pkgbuild-2bf905c893bac50e2536ad24e6ee5a1eac7d6da8.tar.gz
linhes_pkgbuild-2bf905c893bac50e2536ad24e6ee5a1eac7d6da8.tar.bz2
grub-gfx: added grub-gfx to replace the standard grub.
Diffstat (limited to 'abs/core-testing/grub-gfx/i2o.patch')
-rw-r--r--abs/core-testing/grub-gfx/i2o.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/abs/core-testing/grub-gfx/i2o.patch b/abs/core-testing/grub-gfx/i2o.patch
new file mode 100644
index 0000000..2af846c
--- /dev/null
+++ b/abs/core-testing/grub-gfx/i2o.patch
@@ -0,0 +1,45 @@
+Only in grub-0.94/docs: grub.info
+Only in grub-0.94/docs: multiboot.info
+diff -ur grub-0.94/lib/device.c grub-0.94.new/lib/device.c
+--- grub-0.94/lib/device.c 2004-05-07 04:50:36.375238696 +0200
++++ grub-0.94.new/lib/device.c 2004-05-07 04:48:57.611253104 +0200
+@@ -419,6 +419,12 @@
+ {
+ sprintf (name, "/dev/rd/c%dd%d", controller, drive);
+ }
++
++static void
++get_i2o_disk_name (char *name, int unit)
++{
++ sprintf (name, "/dev/i2o/hd%c", unit + 'a');
++}
+ #endif
+
+ /* Check if DEVICE can be read. If an error occurs, return zero,
+@@ -789,6 +795,26 @@
+ }
+ }
+ }
++
++ /* I2O disks. */
++ for (i = 0; i < 8; i++)
++ {
++ char name[16];
++
++ get_i2o_disk_name (name, i);
++ if (check_device (name))
++ {
++ (*map)[num_hd + 0x80] = strdup (name);
++ assert ((*map)[num_hd + 0x80]);
++
++ /* If the device map file is opened, write the map. */
++ if (fp)
++ fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
++
++ num_hd++;
++ }
++ }
++
+ #endif /* __linux__ */
+
+ /* OK, close the device map file if opened. */