firstboot: do not try to start sys-usb when it's combined with sys-net

QubesOS/qubes-issues#1629
This commit is contained in:
Marek Marczykowski-Górecki 2016-02-11 16:47:09 +01:00
parent 27063bd284
commit 1ea718d6fb
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -213,7 +213,8 @@ class moduleClass(Module):
self.configure_default_template()
self.configure_qubes()
self.configure_network()
if self.choice_usb.get_selected():
if self.choice_usb.get_selected() \
and not self.choice_usb_with_net.get_selected():
# Workaround for #1464 (so qvm.start from salt can't be used)
self.run_command_in_thread(['systemctl', 'start',
'qubes-vm@sys-usb.service'])