wok-current diff grub/stuff/dev_partition.diff @ rev 12865
Up: awesome to 3.4.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:17:01 2012 +0000 (2012-05-24) |
parents | ae53586561c8 |
children |
line diff
1.1 --- a/grub/stuff/dev_partition.diff Fri Sep 04 13:38:12 2009 +0200 1.2 +++ b/grub/stuff/dev_partition.diff Thu May 24 21:17:01 2012 +0000 1.3 @@ -1,12 +1,13 @@ 1.4 Partition can be ${dev}$num or ${dev}p$num 1.5 --- grub-0.97/lib/device.c 1.6 +++ grub-0.97/lib/device.c 1.7 -@@ -867,6 +867,12 @@ 1.8 +@@ -867,6 +867,13 @@ 1.9 fd = open (dev, O_RDWR); 1.10 if (fd < 0) 1.11 { 1.12 + strcpy (dev, map[drive]); 1.13 + sprintf (dev + strlen(dev), "p%d", ((partition >> 16) & 0xFF) + 1); 1.14 ++ fd = open (dev, O_RDWR); 1.15 + } 1.16 + 1.17 + if (fd < 0)