From 728bdcae272de9c33ebdc4d9d2f1dd596321b935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 7 Apr 2015 15:06:24 +0200 Subject: [PATCH] firstboot: set fedora template as default As the user can install other templates, it needs to be done explicitly. --- firstboot/modules/qubes_setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firstboot/modules/qubes_setup.py b/firstboot/modules/qubes_setup.py index b61b6eb..8746828 100644 --- a/firstboot/modules/qubes_setup.py +++ b/firstboot/modules/qubes_setup.py @@ -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)