core/hvm: fix external disks handling

This commit is contained in:
Marek Marczykowski-Górecki 2015-08-09 21:21:27 +02:00
parent 375c5ababd
commit 26cf723841
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -112,6 +112,8 @@ class QubesXenVmStorage(QubesVmStorage):
None, self.modules_dev, self.modules_img_rw)
elif self.drive is not None:
(drive_type, drive_domain, drive_path) = self.drive.split(":")
if drive_type == "hd":
drive_type = "disk"
if drive_domain.lower() == "dom0":
drive_domain = None