Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Fedora version #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/BOOTSTRAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ matter in some circumstances, in those cases, it is noted in this page.
* Base (order matters):
* [dom0](../salt/dom0/README.md)
* [debian-minimal](../salt/debian-minimal/README.md)
* [fedora-xfce](../salt/fedora-xfce/README.md)
* [fedora-minimal](../salt/fedora-minimal/README.md)
* [mgmt](../salt/mgmt/README.md)
* [sys-cacher](../salt/sys-cacher/README.md)
Expand Down
20 changes: 20 additions & 0 deletions salt/debian-minimal/update-admin.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if grains['nodename'] == 'dom0' -%}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-update-admin":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-vm-update --no-progress --show-output --targets={{ template.template }}

{% endif %}
10 changes: 10 additions & 0 deletions salt/debian-minimal/update-admin.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'I@qubes:type:template and E@^debian-[0-9][0-9]-minimal$':
- match: compound
- debian-minimal.update-admin
20 changes: 20 additions & 0 deletions salt/debian-xfce/update-admin.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if grains['nodename'] == 'dom0' -%}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-update-admin":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-vm-update --no-progress --show-output --targets={{ template.template }}

{% endif %}
10 changes: 10 additions & 0 deletions salt/debian-xfce/update-admin.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'I@qubes:type:template and E@^debian-[0-9][0-9]-xfce$':
- match: compound
- debian-xfce.update-admin
20 changes: 20 additions & 0 deletions salt/debian/update-admin.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if grains['nodename'] == 'dom0' -%}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-update-admin":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-vm-update --no-progress --show-output --targets={{ template.template }}

{% endif %}
10 changes: 10 additions & 0 deletions salt/debian/update-admin.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'I@qubes:type:template and E@^debian-[0-9][0-9]$':
- match: compound
- debian.update-admin
4 changes: 2 additions & 2 deletions salt/fedora-minimal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ it.

```sh
sudo qubesctl top.enable fedora-minimal
sudo qubesctl --targets=fedora-40-minimal state.apply
sudo qubesctl --targets=fedora-41-minimal state.apply
sudo qubesctl top.disable fedora-minimal
sudo qubesctl state.apply fedora-minimal.prefs
```
Expand All @@ -30,7 +30,7 @@ sudo qubesctl state.apply fedora-minimal.prefs

```sh
sudo qubesctl state.apply fedora-minimal.create
sudo qubesctl --skip-dom0 --targets=fedora-40-minimal state.apply fedora-minimal.install
sudo qubesctl --skip-dom0 --targets=fedora-41-minimal state.apply fedora-minimal.install
sudo qubesctl state.apply fedora-minimal.prefs
```

Expand Down
25 changes: 4 additions & 21 deletions salt/fedora-minimal/create.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]>
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
Expand All @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- fedora.create
- fedora-xfce.create
- .clone

"dvm-{{ template.template }}-absent":
Expand All @@ -23,6 +23,7 @@ name: {{ template.template }}
force: True
require:
- sls: {{ template.template_clean }}.clone
- sls: fedora-xfce.create
present:
- label: black
prefs:
Expand All @@ -32,6 +33,7 @@ prefs:
- memory: 300
- maxmem: 600
- include_in_backups: False
- management_dispvm: dvm-fedora-xfce
features:
- set:
- menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
Expand Down Expand Up @@ -63,22 +65,3 @@ features:
- menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
{%- endload %}
{{ load(defaults) }}

"{{ slsdotpath }}-set-management_dispvm-to-dvm-fedora":
qvm.vm:
- require:
- qvm: dvm-fedora
- name: {{ template.template }}
- prefs:
- management_dispvm: dvm-fedora

## TODO: Remove when template with patch reaches upstream or updates enforce
## salt-deps to be installed.
## https://github.com/QubesOS/qubes-issues/issues/8806
"{{ slsdotpath }}-install-salt-deps":
cmd.script:
- require:
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-dvm-fedora"
- name: salt-patch.sh
- source: salt://fedora-minimal/files/admin/bin/salt-patch.sh
- args: {{ template.template }}
18 changes: 0 additions & 18 deletions salt/fedora-minimal/files/admin/bin/salt-patch.sh

This file was deleted.

17 changes: 3 additions & 14 deletions salt/fedora-minimal/prefs.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]>
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
Expand All @@ -9,21 +9,10 @@ SPDX-License-Identifier: AGPL-3.0-or-later
include:
- .create

"{{ slsdotpath }}-set-management_dispvm-to-default":
"{{ slsdotpath }}-set-{{ template.template }}-management_dispvm-to-default":
qvm.vm:
- require:
- cmd: "{{ slsdotpath }}-install-salt-deps"
- sls: {{ slsdotpath }}.create
- name: {{ template.template }}
- prefs:
- management_dispvm: "*default*"

## TODO: Remove when template with patch reaches upstream or updates enforce
## salt-deps to be installed.
## https://github.com/QubesOS/qubes-issues/issues/8806
"{{ slsdotpath }}-shutdown-template":
qvm.shutdown:
- require:
- qvm: "{{ slsdotpath }}-set-management_dispvm-to-default"
- name: {{ template.template }}
- flags:
- force
20 changes: 20 additions & 0 deletions salt/fedora-minimal/update-admin.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if grains['nodename'] == 'dom0' -%}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-update-admin":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-vm-update --no-progress --show-output --targets={{ template.template }}

{% endif %}
10 changes: 10 additions & 0 deletions salt/fedora-minimal/update-admin.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'I@qubes:type:template and E@^fedora-[0-9][0-9]-minimal$':
- match: compound
- fedora-minimal.update-admin
6 changes: 4 additions & 2 deletions salt/fedora-xfce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Creates the Fedora Xfce template as well as a Disposable Template based on it.

```sh
sudo qubesctl top.enable fedora-xfce
sudo qubesctl --targets=fedora-40-xfce state.apply
sudo qubesctl --targets=fedora-41-xfce state.apply
sudo qubesctl top.disable fedora-xfce
sudo qubesctl state.apply fedora-xfce.prefs
```

* State:
Expand All @@ -28,7 +29,8 @@ sudo qubesctl top.disable fedora-xfce

```sh
sudo qubesctl state.apply fedora-xfce.create
sudo qubesctl --skip-dom0 --targets=fedora-40-xfce state.apply fedora-xfce.install
sudo qubesctl --skip-dom0 --targets=fedora-41-xfce state.apply fedora-xfce.install
sudo qubesctl state.apply fedora-xfce.prefs
```

<!-- pkg:end:post-install -->
Expand Down
10 changes: 9 additions & 1 deletion salt/fedora-xfce/create.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]>
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
Expand Down Expand Up @@ -62,3 +62,11 @@ features:
- menu-items: "qubes-open-file-manager.desktop qubes-run-terminal.desktop qubes-start.desktop"
{%- endload %}
{{ load(defaults) }}

"{{ slsdotpath }}-set-{{ template.template }}-management_dispvm-to-dvm-{{ template.template_clean }}":
qvm.vm:
- require:
- qvm: dvm-{{ template.template_clean }}
- name: {{ template.template }}
- prefs:
- management_dispvm: "dvm-{{ template.template_clean }}"
18 changes: 18 additions & 0 deletions salt/fedora-xfce/prefs.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-set-{{ template.template }}-management_dispvm-to-default":
qvm.vm:
- require:
- sls: {{ slsdotpath }}.create
- name: {{ template.template }}
- prefs:
- management_dispvm: "*default*"
10 changes: 10 additions & 0 deletions salt/fedora-xfce/prefs.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'dom0':
- match: nodegroup
- fedora-xfce.prefs
20 changes: 20 additions & 0 deletions salt/fedora-xfce/update-admin.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

{% if grains['nodename'] == 'dom0' -%}

{%- import slsdotpath ~ "/template.jinja" as template -%}

include:
- .create

"{{ slsdotpath }}-update-admin":
cmd.run:
- require:
- sls: {{ slsdotpath }}.create
- name: qubes-vm-update --no-progress --show-output --targets={{ template.template }}

{% endif %}
10 changes: 10 additions & 0 deletions salt/fedora-xfce/update-admin.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'I@qubes:type:template and E@^fedora-[0-9][0-9]-xfce$':
- match: compound
- fedora-xfce.update-admin
6 changes: 4 additions & 2 deletions salt/fedora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Creates the Fedora template as well as a Disposable Template based on it.

```sh
sudo qubesctl top.enable fedora
sudo qubesctl --targets=fedora-40 state.apply
sudo qubesctl --targets=fedora-41 state.apply
sudo qubesctl top.disable fedora
sudo qubesctl state.apply fedora.prefs
```

* State:
Expand All @@ -28,7 +29,8 @@ sudo qubesctl top.disable fedora

```sh
sudo qubesctl state.apply fedora.create
sudo qubesctl --skip-dom0 --targets=fedora-40 state.apply fedora.install
sudo qubesctl --skip-dom0 --targets=fedora-41 state.apply fedora.install
sudo qubesctl state.apply fedora.prefs
```

<!-- pkg:end:post-install -->
Expand Down
Loading
Loading