qubes/storage/xen: fix RO snapshot

This commit is contained in:
Wojtek Porczyk 2015-10-02 13:30:23 +02:00
parent 3724d6fca1
commit 15c59f938c

View File

@ -87,7 +87,8 @@ class XenVMStorage(qubes.storage.VMStorage):
return self._format_disk_dev( return self._format_disk_dev(
'{}:{}'.format(self.root_img, self.vm.template.rootcow_img), '{}:{}'.format(self.root_img, self.vm.template.rootcow_img),
self.root_dev, self.root_dev,
script='block-snapshot') script='block-snapshot',
rw=False)
else: else:
return self._format_disk_dev(self.root_img, self.root_dev) return self._format_disk_dev(self.root_img, self.root_dev)