dom0/drive: fix hd: prefix parsing

This commit is contained in:
Marek Marczykowski 2012-03-28 11:52:23 +02:00
parent 8705cf9e9a
commit 7dafb32ee1

View File

@ -2226,6 +2226,7 @@ class QubesHVm(QubesVm):
backend_domain = ""
if drive_path.startswith("hd:"):
type_mode = ",w"
drive_path = drive_path[3:]
elif drive_path.startswith("cdrom:"):
type_mode = ":cdrom,r"
drive_path = drive_path[6:]