wok-next diff grub/stuff/dev_partition.diff @ rev 8027
up: xfwm4 (4.8.0)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 20 02:18:29 2011 +0100 (2011-01-20) |
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 Jan 20 02:18:29 2011 +0100 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)