Skip to content

Commit

Permalink
Merge pull request #802 from freedomofpress/801-fedora-36
Browse files Browse the repository at this point in the history
Update to support/migrate to Fedora 36 templates
  • Loading branch information
sssoleileraaa authored Jul 1, 2022
2 parents b7eebfe + fef991d commit c194619
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ When developing on the Workstation, make sure to edit files in `sd-dev`, then co

The staging environment differs from a production envionment in that it builds a local RPM, installs it in dom0, uses the dom0 package repository configuration for future updates of the RPM package from the https://yum-test.securedrop.org repository, and makes it so that you receive the latest nightlies of the workstation components, such as the SecureDrop Client.

#### Update `dom0`, `fedora-35`, `whonix-gw-16` and `whonix-ws-16` templates
#### Update `dom0`, `fedora-36`, `whonix-gw-16` and `whonix-ws-16` templates

Updates to these VMs will be provided by the installer and updater, but to ensure they are up to date prior to install, it will be easier to debug, should something go wrong.

Expand Down
4 changes: 2 additions & 2 deletions dom0/sd-clean-all.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set-fedora-as-default-dispvm:
cmd.run:
- name: qvm-check fedora-35-dvm && qubes-prefs default_dispvm fedora-35-dvm || qubes-prefs default_dispvm ''
- name: qvm-check fedora-36-dvm && qubes-prefs default_dispvm fedora-36-dvm || qubes-prefs default_dispvm ''

{% set gui_user = salt['cmd.shell']('groupmems -l -g qubes') %}

Expand All @@ -23,7 +23,7 @@ restore-sys-usb-dispvm-halt-wait:
restore-sys-usb-dispvm:
qvm.prefs:
- name: sys-usb
- template: fedora-35-dvm
- template: fedora-36-dvm
- require:
- cmd: restore-sys-usb-dispvm-halt-wait
- cmd: set-fedora-as-default-dispvm
Expand Down
2 changes: 1 addition & 1 deletion dom0/sd-clean-default-dispvm.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

set-fedora-as-default-dispvm:
cmd.run:
- name: qvm-check fedora-35-dvm && qubes-prefs default_dispvm fedora-35-dvm || qubes-prefs default_dispvm ''
- name: qvm-check fedora-36-dvm && qubes-prefs default_dispvm fedora-36-dvm || qubes-prefs default_dispvm ''
2 changes: 1 addition & 1 deletion dom0/sd-sys-vms.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include:
# DispVM is created
- qvm.default-dispvm

{% set sd_supported_fedora_version = 'fedora-35' %}
{% set sd_supported_fedora_version = 'fedora-36' %}


# Install latest templates required for SDW VMs.
Expand Down
2 changes: 1 addition & 1 deletion launcher/sdw_updater_gui/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# as well as their associated TemplateVMs.
# In the future, we could use qvm-prefs to extract this information.
current_vms = {
"fedora": "fedora-35",
"fedora": "fedora-36",
"sd-viewer": "sd-large-{}-template".format(DEBIAN_VERSION),
"sd-app": "sd-small-{}-template".format(DEBIAN_VERSION),
"sd-log": "sd-small-{}-template".format(DEBIAN_VERSION),
Expand Down
4 changes: 2 additions & 2 deletions launcher/tests/test_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def test_shutdown_and_start_vms(
call("sys-usb"),
]
template_vm_calls = [
call("fedora-35"),
call("fedora-36"),
call("sd-large-{}-template".format(DEBIAN_VERSION)),
call("sd-small-{}-template".format(DEBIAN_VERSION)),
call("whonix-gw-16"),
Expand Down Expand Up @@ -538,7 +538,7 @@ def test_shutdown_and_start_vms_sysvm_fail(
call("sd-log"),
]
template_vm_calls = [
call("fedora-35"),
call("fedora-36"),
call("sd-large-{}-template".format(DEBIAN_VERSION)),
call("sd-small-{}-template".format(DEBIAN_VERSION)),
call("whonix-gw-16"),
Expand Down
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Reusable constant for DRY import across tests
WANTED_VMS = ["sd-gpg", "sd-log", "sd-proxy", "sd-app", "sd-viewer", "sd-whonix", "sd-devices"]
CURRENT_FEDORA_VERSION = "35"
CURRENT_FEDORA_VERSION = "36"
CURRENT_FEDORA_TEMPLATE = "fedora-" + CURRENT_FEDORA_VERSION
CURRENT_WHONIX_VERSION = "16"

Expand Down

0 comments on commit c194619

Please sign in to comment.