|
13 | 13 |
|
14 | 14 | from qubesadmin import Qubes |
15 | 15 |
|
16 | | -from sdw_util import Util |
17 | | - |
18 | 16 | # The max concurrency reduction (4->2) was required to avoid "did not return clean data" |
19 | 17 | # errors from qubesctl. It may be possible to raise this again. |
20 | 18 | MAX_CONCURRENCY = 2 |
@@ -111,12 +109,15 @@ def provision_and_configure(): |
111 | 109 | provision("Provisioning base template", "securedrop_salt.sd-base-template") |
112 | 110 | configure("Configuring base template", ["sd-base-bookworm-template"]) |
113 | 111 | provision_all() |
114 | | - configure("Enabling Whonix customizations", [f"whonix-gateway-{Util.get_whonix_version()}"]) |
115 | 112 | configure( |
116 | 113 | "Configure all SecureDrop Workstation VMs with service-specific configs", |
117 | 114 | [q.name for q in Qubes().domains if "sd-workstation" in q.tags], |
118 | 115 | ) |
119 | 116 |
|
| 117 | + if "whonix-gateway-17" in Qubes().domains: |
| 118 | + # Qubes installations without whonix |
| 119 | + configure("Disabling Whonix customizations", ["whonix-gateway-17"]) |
| 120 | + |
120 | 121 | sync_appmenus() |
121 | 122 |
|
122 | 123 | if "sd-fedora-42-dvm" in Qubes().domains: |
@@ -213,14 +214,8 @@ def sync_appmenus(): |
213 | 214 | run_cmd(["qvm-sync-appmenus", "sd-large-bookworm-template"]) |
214 | 215 | run_cmd(["qvm-shutdown", "sd-large-bookworm-template"]) |
215 | 216 |
|
216 | | - whonix_gateway = f"whonix-gateway-{Util.get_whonix_version()}" |
217 | | - run_cmd(["qvm-start", "--skip-if-running", whonix_gateway]) |
218 | | - run_cmd(["qvm-sync-appmenus", whonix_gateway]) |
219 | | - run_cmd(["qvm-shutdown", whonix_gateway]) |
220 | | - |
221 | 217 | # These are the ones we show in prod VMs, so sync explicitly |
222 | 218 | run_cmd(["qvm-sync-appmenus", "--regenerate-only", "sd-devices"]) |
223 | | - run_cmd(["qvm-sync-appmenus", "--regenerate-only", "sd-whonix"]) |
224 | 219 | run_cmd(["qvm-sync-appmenus", "--regenerate-only", "sd-log"]) |
225 | 220 |
|
226 | 221 |
|
|
0 commit comments