made own bootc-auto-update service and timer
All checks were successful
Build Silverblue Image / build-push (push) Successful in 10m17s

This commit is contained in:
Joshua Seiger-Eatwell 2025-01-15 19:17:17 +01:00
parent d267037f0c
commit c860d04fd3
4 changed files with 23 additions and 3 deletions

View File

@ -6,6 +6,6 @@ COPY etc etc
RUN dnf install vim ncdu -y && \ RUN dnf install vim ncdu -y && \
dnf remove firefox firefox-langpacks -y && \ dnf remove firefox firefox-langpacks -y && \
systemctl enable bootc-fetch-apply-updates.timer && \ systemctl enable bootc-auto-update.timer && \
ostree container commit && \ ostree container commit && \
bootc container lint bootc container lint

View File

@ -0,0 +1,8 @@
[Unit]
Description=Apply bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Service]
Type=oneshot
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

@ -1,2 +0,0 @@
[Service]
ExecStart=/usr/bin/bootc update --quiet