]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-06-24 Robert Millan <robertmh@gnu.org>
authorrobertmh <robertmh@localhost>
Sat, 24 Jun 2006 14:27:29 +0000 (14:27 +0000)
committerrobertmh <robertmh@localhost>
Sat, 24 Jun 2006 14:27:29 +0000 (14:27 +0000)
        * lib/device.c (write_to_partition): /dev/ataraid/ and /dev/rd/
        partitions have a "p" prefix.  Add it.

ChangeLog
lib/device.c

index e3f83b7e3dec43317d805669b58dd977c8d8b23e..b684a2fffc90504e5d238856b098cf437facc84d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-24  Robert Millan  <robertmh@gnu.org>
+
+       * lib/device.c (write_to_partition): /dev/ataraid/ and /dev/rd/
+       partitions have a "p" prefix.  Add it.
+
 2006-06-24  Robert Millan  <robertmh@gnu.org>
 
        * lib/device.c (get_i2o_disk_name): New function.
index 5774291c642f23de19aa854aa0b904dc8af910ee..8abd2a907b080fdb0ace97b7c2f6c2babe51ddc2 100644 (file)
@@ -890,6 +890,12 @@ write_to_partition (char **map, int drive, int partition,
       if (strcmp (dev + strlen(dev) - 5, "/disc") == 0)
        strcpy (dev + strlen(dev) - 5, "/part");
     }
+  else
+    {
+      if ((strncmp (dev, "/dev/ataraid/", 13) == 0) ||
+         (strncmp (dev, "/dev/rd/", 8) == 0))
+        strcpy (dev + strlen(dev), "p");
+    }
   sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1);
   
   /* Open the partition.  */