qubes/dispvm: do not clone 'template' property from base VM
template should point at the base VM itself.
This commit is contained in:
parent
53b2b30c0a
commit
46791e05f4
@ -145,7 +145,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
|
|||||||
dispid=app.domains.get_new_unused_dispid(),
|
dispid=app.domains.get_new_unused_dispid(),
|
||||||
template=app.domains[appvm],
|
template=app.domains[appvm],
|
||||||
**kwargs)
|
**kwargs)
|
||||||
dispvm.clone_properties(app.domains[appvm])
|
# exclude template
|
||||||
|
proplist = [prop for prop in dispvm.property_list()
|
||||||
|
if prop.clone and prop.__name__ not in ['template']]
|
||||||
|
dispvm.clone_properties(app.domains[appvm], proplist=proplist)
|
||||||
dispvm.create_on_disk()
|
dispvm.create_on_disk()
|
||||||
app.save()
|
app.save()
|
||||||
return dispvm
|
return dispvm
|
||||||
|
Loading…
Reference in New Issue
Block a user