forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
43 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> |
4 changes: 4 additions & 0 deletions
4
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,4 @@ | ||
# https://fedoraproject.org/wiki/Changes/EnableFwupdRefreshByDefault | ||
# As this is for FCOS only for now, once Fedora 39 is released to all streams, | ||
# this should be moved to overlay.d/15fcos/usr/lib/systemd/system-preset/45-fcos.preset | ||
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
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,21 @@ | ||
#!/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" | ||
exit 0 | ||
fi | ||
|
||
unit="fwupd-refresh.timer" | ||
if ! systemctl is-enabled ${unit} 1>/dev/null; then | ||
fatal "Unit ${unit} should be enabled" | ||
fi | ||
ok "Unit ${unit} is enabled as expected" |