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

Fixes QubesOS/qubes-issues#2173
This commit is contained in:
Marek Marczykowski-Górecki 2016-07-16 16:28:19 +02:00
parent 2324cc88cb
commit d8fab041cf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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 " +