Skip to content

Commit

Permalink
README: Add sysext update service to Ignition setup
Browse files Browse the repository at this point in the history
The systemd-sysupdate components need to be updated either manually or
automatically.
Add a timer unit to do automatic updates. The unit is based on the
upstream systemd-sysupdate.timer.
  • Loading branch information
pothos committed Aug 29, 2023
1 parent decb8a6 commit 773a0eb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,34 @@ storage:
Type=regular-file
Path=/opt/extensions/docker
CurrentSymlink=/etc/extensions/docker.raw
systemd:
units:
- name: update-sysext.service
enabled: false
contents: |
[Unit]
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/systemd-sysupdate -C docker update
ExecStart=/usr/lib/systemd/systemd-sysupdate -C kubernetes update
# Add more components to update here:
# ExecStart=/usr/lib/systemd/systemd-sysupdate -C MORECOMPONENTS update
ExecStart=systemctl restart systemd-sysext
[Install]
Also=update-sysext.timer
- name: update-sysext.timer
enabled: true
contents: |
[Timer]
OnBootSec=15min
OnUnitActiveSec=2h
OnCalendar=Sat
RandomizedDelaySec=4h
Persistent=yes
[Install]
WantedBy=timers.target
```

### Creating a custom Docker sysext image
Expand Down

0 comments on commit 773a0eb

Please sign in to comment.