Create custom bootc update unit
This commit is contained in:
9
files/bootc-update/bootc-fetch-apply-updates.service
Normal file
9
files/bootc-update/bootc-fetch-apply-updates.service
Normal 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
|
||||
14
files/bootc-update/bootc-fetch-apply-updates.timer
Normal file
14
files/bootc-update/bootc-fetch-apply-updates.timer
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user