qubes-anaconda-addon: disable salt states after successful configuration

Fixes QubesOS/qubes-issues#2173
pull/6/head
Marek Marczykowski-Górecki 8 years ago
parent 2324cc88cb
commit d8fab041cf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -507,6 +507,11 @@ class QubesOsSpoke(FirstbootOnlySpokeMixIn, NormalSpoke):
try:
self.run_command(['qubesctl', 'state.highstate'])
# After successful call disable all the states to not leave them
# enabled, to not interfere with later user changes (like assigning
# additional PCI devices)
for state in QubesChoice.get_states():
self.run_command(['qubesctl', 'top.disable', state])
except Exception:
raise Exception(
("Qubes initial configuration failed. Login to the system and " +

Loading…
Cancel
Save