dom0/core: one more "nonupdatable template" cleanup
This commit is contained in:
parent
2eec6aaa7c
commit
0c9781648a
@ -1607,19 +1607,6 @@ class QubesTemplateVm(QubesVm):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def start(self, debug_console = False, verbose = False, preparing_dvm=False):
|
|
||||||
if dry_run:
|
|
||||||
return
|
|
||||||
|
|
||||||
self.reset_volatile_storage(verbose=verbose)
|
|
||||||
|
|
||||||
if not self.updateable:
|
|
||||||
raise QubesException ("Cannot start Template VM that is marked \"nonupdatable\"")
|
|
||||||
|
|
||||||
# TODO?: check if none of running appvms are outdated
|
|
||||||
|
|
||||||
return super(QubesTemplateVm, self).start(debug_console=debug_console, verbose=verbose)
|
|
||||||
|
|
||||||
def reset_volatile_storage(self, verbose = False):
|
def reset_volatile_storage(self, verbose = False):
|
||||||
assert not self.is_running(), "Attempt to clean volatile image of running Template VM!"
|
assert not self.is_running(), "Attempt to clean volatile image of running Template VM!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user