made own bootc-auto-update service and timer
All checks were successful
Build Silverblue Image / build-push (push) Successful in 10m17s
All checks were successful
Build Silverblue Image / build-push (push) Successful in 10m17s
This commit is contained in:
parent
d267037f0c
commit
c860d04fd3
@ -6,6 +6,6 @@ COPY etc etc
|
||||
|
||||
RUN dnf install vim ncdu -y && \
|
||||
dnf remove firefox firefox-langpacks -y && \
|
||||
systemctl enable bootc-fetch-apply-updates.timer && \
|
||||
systemctl enable bootc-auto-update.timer && \
|
||||
ostree container commit && \
|
||||
bootc container lint
|
||||
|
8
etc/systemd/system/bootc-auto-update.service
Normal file
8
etc/systemd/system/bootc-auto-update.service
Normal 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
|
14
etc/systemd/system/bootc-auto-update.timer
Normal file
14
etc/systemd/system/bootc-auto-update.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
|
@ -1,2 +0,0 @@
|
||||
[Service]
|
||||
ExecStart=/usr/bin/bootc update --quiet
|
Loading…
Reference in New Issue
Block a user