]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/grub-0.97-dmraid-partition-names.patch
Add some patches to grub.
[people/pmueller/ipfire-2.x.git] / src / patches / grub-0.97-dmraid-partition-names.patch
diff --git a/src/patches/grub-0.97-dmraid-partition-names.patch b/src/patches/grub-0.97-dmraid-partition-names.patch
new file mode 100644 (file)
index 0000000..9390b29
--- /dev/null
@@ -0,0 +1,10 @@
+--- grub-0.97/lib/device.c.dmraid-partition-names      2006-02-13 18:53:59.000000000 -0500
++++ grub-0.97/lib/device.c     2006-02-13 18:56:04.000000000 -0500
+@@ -1106,6 +1106,7 @@
+          /* Compaq smart and others */
+          (strncmp(dev, "/dev/ida/", 9) == 0 ||
+           strncmp(dev, "/dev/ataraid/", 13) == 0 ||
++          strncmp(dev, "/dev/mapper/", 12) == 0 || 
+           strncmp(dev, "/dev/cciss/", 11) == 0 ||
+           strncmp(dev, "/dev/rd/", 8) == 0) ? "p" : "",
+          ((partition >> 16) & 0xFF) + 1);