Interactive Archify diagram (What Actually Mounts When Aurora Boots): click any component to inspect its full explanation. Open full screen ↗

The first time you run touch /usr/lib/probe as root on a machine like this, you expect success. You get:

touch: cannot touch '/usr/lib/probe': Read-only file system

Not "permission denied" — read-only file system. Root, the user who can do anything, cannot create a file in the directory that holds every binary on the machine. That one line is the whole difference between this system and a normal Linux desktop, and almost everything that follows is a consequence of it.

This machine is Aurora 45.20261124.1, built on Fedora Kinoite, running kernel 7.3.4-300.fc45, with 2,452 packages in the base image and two deployments on disk. Here is what that actually means.

/usr being writable was never a design decision

Unix inherited a simple model: one filesystem, one root, and applications install into it. Package managers arrived later and took ownership of that tree by convention — dpkg, rpm, pacman all assume they may write anywhere under /usr, and that the state of the machine is the accumulated result of every transaction that has ever run.

That model works, until you ask it a question it cannot answer: what is the machine supposed to look like? On a mutable system there is no answer. There is only what it looks like now, and a memory of what it looked like before if someone happened to snapshot it.

ostree replaces the question. The system is not a tree that transactions modify; it is an image with a digest, materialised as a deployment. Deployments do not modify each other. A change makes a new one and keeps the old one bootable.

What actually boots

Look at the chain honestly, including the part that is not protected:

UEFI firmware hands off to GRUB. On this host GRUB is maintained by bootupd, and it reads Boot Loader Spec entries — one per deployment. Each entry names a deployment by checksum and points at that deployment's own kernel and initramfs. The kernel command line is not a file you edit; it carries an ostree= argument naming which root to mount.

Then composefs mounts /, and three writable things appear beside it: a merged /etc, a /var subvolume, and your home.

The important detail is that booting is selecting a deployment. Nothing is restored, nothing is repaired, nothing is downloaded. The previous system was never destroyed, so there is nothing to put back.

A deployment is a digest, not a state

Interactive Archify diagram (A Deployment Is a Digest, Not a State): click any component to inspect its full explanation. Open full screen ↗

The origin here is an OCI image: ghcr.io/ublue-os/aurora-dx:stable. The tag moves daily; the digest sha256:8591f68e… does not. What booted on Tuesday has a precise, quotable answer, and two machines with the same digest have byte-identical /usr.

Locally, a deployment is a tree of hardlinks into the ostree object store. This is the part people miss when they hear "immutable is expensive": because files are content-addressed, two deployments that differ by ten packages share almost every byte. Keeping the previous system back costs the difference, not another copy of Fedora. On this machine that is why two complete deployments fit comfortably.

So rpm-ostree rollback is not a repair command. It marks the other deployment as default. Reboot, done — with the same kernel, the same libraries, and the same kernel arguments as before whatever broke broke.

composefs: the root filesystem as a manifest

Interactive Archify diagram (composefs: The Root Filesystem as a Manifest): click any component to inspect its full explanation. Open full screen ↗

The mount table on this machine reads:

/ composefs ro,... lowerdir+=/run/ostree/.private/cfsroot-lower,
           datadir+=/sysroot/ostree/repo/objects

A small erofs image holds only metadata: inodes, permissions, xattrs, and for each file a pointer of (hash, offset, length). The contents live in the object store and are reached through those pointers. That is why verification is cheap — check the manifest, and the tree is known good — and why / is read-only as a filesystem property rather than a policy. There is no writable filesystem under it to write to.

Two practical consequences. A power loss mid-upgrade cannot leave a half-written library, because no library is ever rewritten. And "which package owns this broken file" stops being a question, because files are identified by content, not by provenance.

Who owns the kernel

Interactive Archify diagram (Who Owns the Kernel: pacman vs the Deployment): click any component to inspect its full explanation. Open full screen ↗

On Arch, the kernel is a package. pacman -Syu writes vmlinuz-linux, unpacks modules into /usr/lib/modules, runs hooks to regenerate the initramfs, and updates the boot loader — while the system is running. Four steps, four chances to be interrupted, and the resulting state exists in no repository. The classic failure is exactly this: a kernel whose modules were replaced underneath it, discovered at the next reboot.

Here the kernel is not installed, it is included. Kernel, modules, initramfs, and command line are all members of the deployment, so they are consistent by construction rather than by a hook finishing. The one thing worth tuning — the command line — goes through rpm-ostree kargs, which creates a new deployment instead of editing grub.cfg. A bad argument costs one reboot.

The four surfaces you may write

Interactive Archify diagram (The Four Surfaces You Are Allowed to Write): click any component to inspect its full explanation. Open full screen ↗

The writable world is small, and it is worth naming precisely:

SurfaceWritableRollback covers itWhat lives here
/usrno — EROFS, even as rootit is the deployment2,452 packages, kernel, modules, systemd units
/etcyes, merged and diffableyes — re-merged from the imageyour configuration, enumerated by config-diff
/varyesnocontainers, Flatpak runtimes, services, logs
/var/homeyesno97 GB of documents, keys, credentials, source
/tmpyesn/a — tmpfsnothing that survives a reboot

/etc deserves a sentence of its own. ostree does not just leave it alone; it merges the image's /usr/etc with your edits on every new deployment, using a three-way merge. Your changes survive upgrades, and — more usefully — ostree admin config-diff lists them. It is the closest thing this architecture offers to a changelog of the machine itself.

Everything past that column is the honest part: a rollback restores the system and leaves /var and /var/home exactly as the broken deployment left them.

An update is a second system, not a rewrite

Interactive Archify diagram (An Update Is a Second System, Not a Rewrite): click any component to inspect its full explanation. Open full screen ↗

The sequence is: the tag stable moves to a new digest → rpm-ostree upgrade fetches only the objects it lacks and verifies the signature → a new deployment is assembled beside the running one → its boot entry is added. The reboot is the commit.

This host is configured to stage, with the automatic timer inactive, so the switch waits for a deliberate reboot rather than arriving under a running session. Interrupt an upgrade at any point and the running system is untouched, because it was never the thing being written.

What this costs

Nothing here is free, and the trade-offs are real:

  • Layering is slow and sticky. rpm-ostree install builds a deployment locally. Each layer is drift from the image, and enough of them turn every upgrade into a merge problem.
  • You cannot patch one file. A one-line fix in a system unit means rebuilding the image or layering a package that replaces it.
  • Out-of-tree modules must be baked in, not compiled against a running kernel on demand.
  • Freshness depends on the builder. The newest software arrives at whatever cadence the image is rebuilt — daily for ublue, Fedora's schedule for Kinoite.

If you want the newest of everything, the moment it exists, and you enjoy the system being an ongoing project, Arch is genuinely better at that and honest about it. If you want a machine whose operating system is a fact you can name, boot, and roll back, this architecture is the reason it can be.

The short version

Read-only /usr is not a restriction for its own sake. It converts the most dangerous class of change — an in-place mutation of the shared system tree — into either an error message or a sibling deployment. That is a different guarantee from "we take backups", and it is the one that makes the next post possible: an automated agent with a shell can be catastrophically wrong about the system and still cost you nothing but a reboot.

What it does not protect is the data. That is the subject of the third post in this series.