firstboot: set fedora template as default

As the user can install other templates, it needs to be done explicitly.
This commit is contained in:
Marek Marczykowski-Górecki 2015-04-07 15:06:24 +02:00
parent 8d61956b28
commit 728bdcae27

View File

@ -76,6 +76,8 @@ class moduleClass(Module):
if testing:
return RESULT_SUCCESS
self.set_default_template()
if self.radio_dontdoanything.get_active():
return RESULT_SUCCESS
@ -111,6 +113,9 @@ class moduleClass(Module):
self.stage = stage
self.progress.set_text(stage)
def set_default_template(self):
subprocess.call(['/usr/bin/qubes-prefs', '--set', 'default-template', 'fedora-21'])
def configure_template(self):
self.show_stage(_("Configuring default TemplateVM"))
self.run_in_thread(self.do_configure_template)