qubes-anaconda-addon: fix setting default DispVM

Also hide it from application menu.

Fixes QubesOS/qubes-issues#2911
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-17 03:05:22 +02:00
parent 5df7f6364e
commit 8d2f8b2d2c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -540,7 +540,9 @@ class QubesOsSpoke(FirstbootOnlySpokeMixIn, NormalSpoke):
dispvm_name = self.default_template + '-dvm'
self.run_command(['/usr/bin/qvm-create', '--label', 'red', dispvm_name])
self.run_command(['/usr/bin/qvm-prefs', dispvm_name, 'dispvm_allowed', 'True'])
self.run_command(['/usr/bin/qubes-prefs', 'default-dispvm', default_dispvm])
self.run_command(['/usr/bin/qvm-features', dispvm_name, 'internal', 'True'])
self.run_command(['/usr/bin/qubes-prefs', 'default-dispvm',
dispvm_name])
def configure_network(self):
self.set_stage('Setting up networking')