2008-05-07 Ian Campbell <ijc@hellion.org.uk>

* util/biosdisk.c (get_os_disk): Recognise xvd type disks.
	* util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
	(make_device_map): Output entries for xvd type disks.
This commit is contained in:
proski 2008-05-07 20:46:57 +00:00
parent b56c4eaa3f
commit ed7593907d
3 changed files with 36 additions and 0 deletions

View file

@ -677,6 +677,14 @@ get_os_disk (const char *os_dev)
p[3] = '\0';
return path;
}
/* If this is a Xen virtual block device. */
if ((strncmp ("xvd", p, 3) == 0) && p[3] >= 'a' && p[3] <= 'z')
{
/* /dev/xvd[a-z][0-9]* */
p[4] = '\0';
return path;
}
}
return path;