summarylogtreecommitdiffstats
path: root/special-devices.patch
diff options
context:
space:
mode:
authorronald2011-08-03 19:21:09 +0000
committerronald2011-08-03 19:21:09 +0000
commit2597ac00f7328c869b9b8b9172b5567b841b7b52 (patch)
tree70e281639c8a838f321d949701af49771a1363a6 /special-devices.patch
downloadaur-2597ac00f7328c869b9b8b9172b5567b841b7b52.tar.gz
upgpkg: grub 0.97-18
fix compile issues; handle new kernel naming scheme in install-grub script; make install-grub script slightly smarter (though still not very smart) git-svn-id: file:///srv/repos/svn-packages/svn@134414 eb2447ed-0c53-47e4-bac8-5bc4a241df78
Diffstat (limited to 'special-devices.patch')
-rw-r--r--special-devices.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/special-devices.patch b/special-devices.patch
new file mode 100644
index 000000000000..894f3e8872e8
--- /dev/null
+++ b/special-devices.patch
@@ -0,0 +1,18 @@
+--- grub-0.93/lib/device.c.raid 2002-05-20 05:53:46.000000000 -0400
++++ grub-0.93/lib/device.c 2002-12-28 23:24:10.000000000 -0500
+@@ -689,7 +689,14 @@
+ if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
+ strcpy (dev + strlen(dev) - 5, "/part");
+ }
+- sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
++
++ sprintf (dev + strlen(dev), "%s%d",
++ /* Compaq smart and others */
++ (strncmp(dev, "/dev/ida/", 9) == 0 ||
++ strncmp(dev, "/dev/ataraid/", 13) == 0 ||
++ strncmp(dev, "/dev/cciss/", 11) == 0 ||
++ strncmp(dev, "/dev/rd/", 8) == 0) ? "p" : "",
++ ((partition >> 16) & 0xFF) + 1);
+
+ /* Open the partition. */
+ fd = open (dev, O_RDWR);