-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable fwupd refresh timer on Fedora 39
See: https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault Fixes: coreos/fedora-coreos-tracker#1512
- Loading branch information
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ostree-layers: | ||
- overlay/18fwupd-refresh-timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
2 changes: 2 additions & 0 deletions
2
overlay.d/18fwupd-refresh-timer/usr/lib/systemd/system-preset/50-fwupd-refresh-timer.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault | ||
enable fwupd-refresh.timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |