Hi everyone,
I wanted to pitch an idea to the community about how our atomic desktops handle update failures.
About twice a year on AMD hardware, a bad update leaves my machine with no usable desktop. The previous deployment is still safely sitting on the disk, but nothing in the OS actually notices the failure, falls back automatically, or remembers the broken commit. Because of this, the next automatic refresh just installs the exact same broken update all over again.
Since atomic desktops are meant to be unbreakable, the OS should actively defend itself by default when a graphical boot fails.
The Idea: A desktop aware boot health check
We already have greenboot to retry failed boots, trigger rpm ostree rollback, and use the GRUB counter when core userspace never starts. But Silverblue and Kinoite are missing a crucial check that says “the desktop environment actually came up” along with a persistent memory of which commit failed.
Here is how the logic could work under the hood:
- The Wayland Signal: On modern Fedora, the GDM greeter, GNOME, or Plasma sessions show up in logind as a local Wayland session on seat0. Since the greeter runs as a dynamic user, the check can query logind directly instead of assuming UID 1000.
- The Crash Loop Catch: The watchdog can wait until one of those graphical sessions has stayed active for a short while, making sure that a rapid crash loop counts as a total failure.
- The Blessing: This check only needs to run once on a deployment that has not been blessed yet. Once a boot has proven itself stable, the service stays quiet.
- The Safe Rollback: If the session never appears, greenboot reboots, tries a few times, and then rolls back to the previous stable deployment.
- The Smart Hold: The base commit of the bad update is recorded. While the remote repository still offers that same broken commit, the machine refuses to upgrade to it. The moment the remote moves to a newer commit, the hold lifts, and the update can be staged again.
- The User Alert: At the next successful login, a normal desktop notification tells the user exactly what happened. It either explains that they are on a fallback deployment because the update failed, or that a newer, fixed update is already staged and ready for a reboot.
Handling Edge Cases
This concept perfectly covers boots where the system stays up but no Wayland session ever becomes stable.
Of course, there are boundaries. A black screen where the greeter is technically running but invisible would still look healthy to logind, and a hard GPU driver hang before userspace would still rely on the hardware reset and GRUB counter.
Additionally, the check would automatically bless unattended boots to ensure that background updates, which happen while nobody is at the keyboard, do not trigger false rollbacks.
Where does this belong?
Since GNOME Software handles rpm ostree on its own, simply pausing a local automatic systemd timer is a fragile approximation. Upstream, the true missing piece is a health mark on the deployment itself: the ability to skip a specific base commit that failed this check until the branch points to a newer one.
I would love to hear your thoughts on this. Does a graphical health check like this belong as a default greenboot required check on Silverblue and Kinoite, or should this deployment state and blocklist logic live directly inside rpm ostree?
Let’s discuss!