Hi!

I'd some troubles installing grub on linux 2.2.19-preXX with cpqarray
that like others raid card have different devices name...

follow a patch that work for me TM :

diff -ur grub-0.5.96.1/lib/device.c grub-0.5.96.1.tl/lib/device.c
--- grub-0.5.96.1/lib/device.c  Mon Oct 16 16:41:54 2000
+++ grub-0.5.96.1.tl/lib/device.c       Mon Apr  2 18:35:33 2001
@@ -569,6 +569,8 @@
        }
     }

+  /* Compaq BLOCK devices ??? /dev/ida/* /dev/cciss/* /dev/rd/* ??? */
+
   /* OK, close the device map file if opened.  */
   if (fp)
     fclose (fp);
@@ -616,7 +618,13 @@
       if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
        strcat (dev + strlen(dev) - 5, "/part");
     }
-  sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
+
+  /* Compaq smart and others */
+  if ( !strncmp(dev,"/dev/ida/",9) || \
+       !strncmp(dev,"/dev/cciss/",11) || \
+       !strncmp(dev,"/dev/rd/",8) )
+       sprintf (dev + strlen(dev), "p%d", ((partition >> 16) & 0xFF) + 1);
+  else sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);

   /* Open the partition.  */
   fd = open (dev, O_RDWR);


ciao,
luca

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to