Skip to content

Commit

Permalink
Bump supported fedora version to 41.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Dec 20, 2024
1 parent 2943c4c commit 838b9d1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions files/sdw-admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def provision_and_configure():

sync_appmenus()

if "sd-fedora-40-dvm" in Qubes().domains:
# If sd-fedora-40-dvm exists it's because salt determined that sys-usb was disposable
if "sd-fedora-41-dvm" in Qubes().domains:
# If sd-fedora-41-dvm exists it's because salt determined that sys-usb was disposable
configure(
"Add SecureDrop export device handling to sys-usb (disposable)",
["sd-fedora-40-dvm"],
["sd-fedora-41-dvm"],
restart=["sys-usb"],
)
else:
Expand Down
2 changes: 1 addition & 1 deletion sdw_updater/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# as well as their associated TemplateVMs.
# In the future, we could use qvm-prefs to extract this information.
current_vms = {
"fedora": "fedora-40-xfce",
"fedora": "fedora-41-xfce",
"sd-viewer": f"sd-large-{DEBIAN_VERSION}-template",
"sd-app": f"sd-small-{DEBIAN_VERSION}-template",
"sd-log": f"sd-small-{DEBIAN_VERSION}-template",
Expand Down
4 changes: 2 additions & 2 deletions securedrop_salt/sd-clean-all.sls
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ restore-sys-usb-dispvm-start:
- require:
- qvm: restore-sys-usb-dispvm

# autoattach modifications are only present in sd-fedora-40-dvm
# autoattach modifications are only present in sd-fedora-41-dvm
# so no more sd-usb-autoattach-remove necessary
remove-sd-fedora-dispvm:
qvm.absent:
- name: sd-fedora-40-dvm
- name: sd-fedora-41-dvm
- require:
- qvm: restore-sys-usb-dispvm
{% else %}
Expand Down
6 changes: 3 additions & 3 deletions securedrop_salt/sd-sys-vms.sls
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include:

# 4.2 fedora template is fedora-NN-xfce, but let's keep the dvm names to
# follow simple - like sd-fedora-NN-dvm
{% set sd_supported_fedora_version = 'fedora-40' %}
{% set sd_supported_fedora_version = 'fedora-41' %}
{% set sd_fedora_base_template = sd_supported_fedora_version + '-xfce' %}

# Install latest templates required for SDW VMs.
Expand Down Expand Up @@ -123,9 +123,9 @@ sd-{{ sys_vm }}-fedora-version-update:
# the template, in case it's being used elsewhere, but the `sd-` VMs we can
# reasonably manage (remove) ourselves.
{% if sys_vm == "sys-usb" %}
remove-sd-fedora-39-dvm:
remove-sd-fedora-40-dvm:
qvm.absent:
- name: sd-fedora-39-dvm
- name: sd-fedora-40-dvm
- require:
- qvm: sd-sys-usb-fedora-version-update
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion securedrop_salt/sd-workstation.top
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ base:
- securedrop_salt.sd-viewer-files
sd-gpg:
- securedrop_salt.sd-gpg-files
'sd-fedora-40-dvm,sys-usb':
'sd-fedora-41-dvm,sys-usb':
- match: list
- securedrop_salt.sd-usb-autoattach-add
whonix-gateway-17:
Expand Down
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
SD_DVM_TEMPLATES = ["sd-devices-dvm", "sd-proxy-dvm"]
SD_TEMPLATES = [SD_TEMPLATE_BASE, SD_TEMPLATE_LARGE, SD_TEMPLATE_SMALL]

CURRENT_FEDORA_VERSION = "40"
CURRENT_FEDORA_VERSION = "41"
CURRENT_FEDORA_TEMPLATE = "fedora-" + CURRENT_FEDORA_VERSION + "-xfce"
CURRENT_FEDORA_DVM = "fedora-" + CURRENT_FEDORA_VERSION + "-dvm"
CURRENT_WHONIX_VERSION = "17"
Expand Down

0 comments on commit 838b9d1

Please sign in to comment.