Skip to content

Commit

Permalink
Enable fwupd refresh timer on Fedora 39
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed Aug 23, 2023
1 parent 01ef560 commit 9b71388
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/enable-fwupd-refresh-timer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ostree-layers:
- overlay/18fwupd-refresh-timer
3 changes: 3 additions & 0 deletions manifests/fedora-coreos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ conditional-include:
# Modularity is going away in F39+ so we'll only include
# the fedora-repos-modular package in <39.
include: fedora-modularity.yaml
- if: releasever >= 39
# https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault
include: enable-fwupd-refresh-timer.yaml

ostree-layers:
- overlay/15fcos
Expand Down
2 changes: 2 additions & 0 deletions overlay.d/18fwupd-refresh-timer/statoverride
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Config file for overriding permission bits on overlay files/dirs
# Format: =<file mode in decimal> <absolute path to a file or directory>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault
enable fwupd-refresh.timer
22 changes: 22 additions & 0 deletions tests/kola/files/fwupd-refresh-timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
## kola:
## exclusive: false
## description: Verify fwupd-refresh.timer is enabled.
## tags: "platform-independent"

set -xeuo pipefail

# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

if verlt "$(get_fedora_ver)" 39; then
ok "Skipping fwupd-refresh.timer test"
fi

# shellcheck disable=SC2043
for unit in fwupd-refresh.timer; do
if ! systemctl is-enabled ${unit} 1>/dev/null; then
fatal "Unit ${unit} should be enabled"
fi
ok "Unit ${unit} is enabled as expected"
done

0 comments on commit 9b71388

Please sign in to comment.