dom0/core: use xvdi as cdrom frontend
When used both xvd* and hd* only xvd* isn't detected.
This commit is contained in:
parent
63f3537f98
commit
45c1c01410
@ -2090,9 +2090,9 @@ class QubesHVm(QubesVm):
|
||||
if self.drive:
|
||||
stat_res = os.stat(self.drive)
|
||||
if stat.S_ISBLK(stat_res.st_mode):
|
||||
params['otherdevs'] = "'phy:%s,hdc:cdrom,r'," % self.drive
|
||||
params['otherdevs'] = "'phy:%s,xvdi:cdrom,r'," % self.drive
|
||||
else:
|
||||
params['otherdevs'] = "'script:file:%s,hdc:cdrom,r'," % self.drive
|
||||
params['otherdevs'] = "'script:file:%s,xvdi:cdrom,r'," % self.drive
|
||||
else:
|
||||
params['otherdevs'] = ''
|
||||
return params
|
||||
|
Loading…
Reference in New Issue
Block a user