So, unfortunately there is currently no built-in way to do this as rpm-ostree cannot automatically reboot with the current automatic
AutomaticUpdatePolicy and Fedora Iot does not ship with Zicanti by default.
As such, you need to create your own system service and timer to trigger this.
rpm-ostree upgrade --reboot at least only reboots when it downloaded and upgrade or one is already downloaded.
sudo systemctl edit --force --full rpm-ostreed-upgrade-reboot.service to create new services.
# workaround for missing reboot policy
Description=rpm-ostree upgrade and reboot
ExecStart=/usr/bin/rpm-ostree upgrade --reboot
And as for
rpm-ostreed-upgrade-reboot.timer we just copy the existing `rom-ostreed update service timer:
Description=rpm-ostree upgrade and reboot trigger
Or, of course, you edit the existing timer and modify the command it runs.
Important: If you do not override the existing timer
rpm-ostreed-automatic.service, you need to disable it, so it does not run it, because when it stages an update the next
rpm-ostree upgrade –reboot command may not have another update available and thus it does not do anything and thus does not even think of rebooting the system…
Also maybe consider running
podman auto-update in the same way, if you use podman containers and want to keep them updated.