dom0/core: more generic way to specify xen config template
This commit is contained in:
parent
8433931822
commit
de9f952a2e
@ -78,6 +78,8 @@ default_servicevm_vcpus = 1
|
|||||||
default_kernelopts = ""
|
default_kernelopts = ""
|
||||||
default_kernelopts_pcidevs = "iommu=soft swiotlb=2048"
|
default_kernelopts_pcidevs = "iommu=soft swiotlb=2048"
|
||||||
|
|
||||||
|
config_template_pv = '/usr/share/qubes/vm-template.conf'
|
||||||
|
|
||||||
qubes_whitelisted_appmenus = 'whitelisted-appmenus.list'
|
qubes_whitelisted_appmenus = 'whitelisted-appmenus.list'
|
||||||
|
|
||||||
dom0_update_check_interval = 6*3600
|
dom0_update_check_interval = 6*3600
|
||||||
@ -861,7 +863,7 @@ class QubesVm(object):
|
|||||||
if source_template is None:
|
if source_template is None:
|
||||||
source_template = self.template_vm
|
source_template = self.template_vm
|
||||||
|
|
||||||
f_conf_template = open('/usr/share/qubes/vm-template.conf', 'r')
|
f_conf_template = open(self.config_file_template, 'r')
|
||||||
conf_template = f_conf_template.read()
|
conf_template = f_conf_template.read()
|
||||||
f_conf_template.close()
|
f_conf_template.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user