mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
* util/hostdisk.c (convert_system_partition_to_system_disk):
Handle virtual disk devices named /dev/vdiskX as found on sparc and powerpc.
This commit is contained in:
1 parent
ac8a2baae4
commit
6966215ddb
2 files changed
+11
No files matched your search
@@ -1,5 +1,9 @@
|
||||
2009-04-30 David S. Miller <davem@davemloft.net>
|
||||
|
||||
* util/hostdisk.c (convert_system_partition_to_system_disk):
|
||||
Handle virtual disk devices named /dev/vdiskX as found on sparc
|
||||
and powerpc.
|
||||
|
||||
* kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
|
||||
lettered partition specifier is found, convert to numbered.
|
||||
|
||||
|
||||
@@ -767,6 +767,13 @@ convert_system_partition_to_system_disk (const char *os_dev)
|
||||
}
|
||||
|
||||
/* If this is an IDE, SCSI or Virtio disk. */
|
||||
if (strncmp ("vdisk", p, 5) == 0
|
||||
&& p[5] >= 'a' && p[5] <= 'z')
|
||||
{
|
||||
/* /dev/vdisk[a-z][0-9]* */
|
||||
p[6] = '\0';
|
||||
return path;
|
||||
}
|
||||
if ((strncmp ("hd", p, 2) == 0
|
||||
|| strncmp ("vd", p, 2) == 0
|
||||
|| strncmp ("sd", p, 2) == 0)
|
||||
|
||||
Reference in new issue
Block a user