Create custom bootc update unit

This commit is contained in:
Gerald Pinder
2025-03-09 16:30:10 -04:00
parent 8cd6d24497
commit 28ee8b49b3
5 changed files with 29 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Apply bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Service]
Type=oneshot
# ExecStart=/usr/bin/bootc update --apply --quiet
ExecStart=/usr/bin/bootc update --quiet

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Apply bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Timer]
OnBootSec=1h
# This time is relatively arbitrary and obviously expected to be overridden/changed
OnUnitInactiveSec=8h
# When deploying a large number of systems, it may be beneficial to increase this value to help with load on the registry.
RandomizedDelaySec=2h
[Install]
WantedBy=timers.target

View File

@@ -7,7 +7,7 @@ modules:
- from-file: common/gaming-bootc.yml
- from-file: common/dev-packages-bootc.yml
- from-file: common/dev-apps-bootc.yml
# - from-file: common/updates.yml
- from-file: common/updates.yml
- type: files
files:
- source: distrobox

View File

@@ -3,10 +3,12 @@ modules:
files:
- source: rpm-ostreed-conf
destination: /etc
- source: bootc-update
destination: /usr/lib/systemd/system
- type: systemd
system:
masked:
- ublue-update.timer
enabled:
- rpm-ostreed-automatic.timer
# - bootc-fetch-apply-updates.timer
enabled:
- bootc-fetch-apply-updates.timer

View File

@@ -17,5 +17,6 @@ modules:
- rstudio-desktop
- libreoffice
- from-file: common/ms-fonts.yml
- from-file: common/updates.yml
- from-file: common/bluebuild-logo.yml
- from-file: common/post-build.yml