dispvm: create /qubes-restore-complete qubesdb key

It is used by just started DispVM to notice when restore process
completed. Alternatively it could watch its own domid, but lets do it in
Xen-independent way.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-04 02:19:57 +01:00
parent 90b76b489d
commit 69f8d8aecf

View File

@ -117,6 +117,12 @@ class QubesDisposableVm(QubesVm):
attrs['privatedev'] = ''
return attrs
def create_xenstore_entries(self, xid):
super(QubesDisposableVm, self).create_xenstore_entries(xid)
self.qdb.write('/qubes-restore-complete', '1')
def start(self, verbose = False, **kwargs):
self.log.debug('start()')
if dry_run: