An immutable operating system is an operating system whose core system files are mounted read-only during normal operation and are changed only by replacing them as a complete, versioned unit. Instead of patching individual packages in place, the system downloads or builds a new system image, switches to it at the next boot and keeps the previous image available for instant rollback. In OS updates & maintenance, this design turns updating from a risky sequence of file edits into a single atomic transaction that either succeeds completely or leaves the running system untouched.
The approach is also called an immutable OS or, in the Linux world, an atomic distribution. Well-known examples include Fedora Silverblue, Fedora CoreOS, openSUSE MicroOS, NixOS, Vanilla OS, Flatcar Container Linux, ChromeOS and the sealed system volume used by macOS since Big Sur. In Operating systems practice, the model is now common on servers, appliances, kiosks and developer workstations that value predictability over manual tweaking.
How an immutable operating system handles change
An immutable operating system separates the machine into a read-only base layer and a small set of writable areas for user data and configuration. The base layer contains the kernel, system libraries and core tools; the writable areas usually include /home, /var and a managed copy of /etc. Because the base cannot be modified while it runs, configuration drift between machines largely disappears.
Updates follow a build, stage and switch cycle. The update tool assembles or downloads a complete new deployment, verifies it, writes it beside the current one and updates the boot loader entry. Nothing changes for the running session until the next reboot, when the machine starts from the new deployment. If that boot fails, the boot loader or an automatic health check selects the previous known-good deployment.
The table below lists the main mechanisms that different implementations use to store and switch deployments.
| Mechanism | How it stores system versions | Typical users |
|---|---|---|
| OSTree / rpm-ostree | Content-addressed file trees with hard-linked deployments | Fedora Silverblue, Fedora CoreOS |
| Btrfs snapshots | Copy-on-write subvolume snapshots of the root | openSUSE MicroOS, Aeon |
| A/B partitions | Two full root partitions, one active and one standby | ChromeOS, Flatcar, Android |
| Nix store | Hash-named package paths assembled into generations | NixOS |
| Sealed system volume | Cryptographically signed snapshot of the system volume | macOS |
| Bootable container images | OCI container image deployed as the host system | bootc-based systems |
Key properties and what they guarantee
The value of an immutable operating system comes from a few specific guarantees that conventional package-based systems cannot offer by default. Each property addresses a typical failure that administrators meet during routine maintenance.
| Property | What it means | Problem it prevents |
|---|---|---|
| Atomicity | An update applies fully or not at all | Half-installed packages after a power loss |
| Read-only root | Running processes cannot alter system files | Accidental or malicious system tampering |
| Versioned deployments | Each system state has an identifier | Unknown differences between machines |
| Rollback | The previous state boots in one step | Long recovery after a faulty update |
| Reproducibility | The same image yields the same system | Configuration drift across a fleet |
These guarantees also strengthen security. With verified boot or a signed image, the firmware and boot chain can confirm that the base layer has not been modified, which makes persistent rootkits much harder to install. The protection is not absolute, however, because writable areas such as /etc and the user home directory can still hold malicious startup entries.
Immutable versus traditional and A/B update models
An immutable operating system differs from a traditional mutable system mainly in when and how files change. A mutable system, such as a standard Debian or Windows installation, rewrites files in place while the system runs, so a failure mid-update can leave a mixture of old and new components. The comparison below places the immutable model next to its closest neighbors in the Topic.
| Approach | When changes take effect | Rollback method | Main trade-off |
|---|---|---|---|
| Traditional package updates | Immediately, file by file | Manual downgrade or backup restore | Flexible but prone to drift |
| Immutable operating system | At the next reboot | Boot the previous deployment | Predictable but less tweakable |
| A/B system updates | After switching slots on reboot | Switch back to the other slot | Doubles root storage needs |
| Live patching | Immediately, in kernel memory | Unload the patch module | Covers only selected kernel fixes |
| System image restore | After a full restore | Reapply an older image | Slow and often loses recent data |
A/B system updates are one way to build an immutable system rather than a competing idea: the two partitions provide the versioned deployments. Many immutable desktops avoid duplicating whole partitions and instead use deduplicated file trees or snapshots, which store only the files that differ between versions.
Installing software on an immutable OS
Software installation on an immutable OS moves away from changing the base system and toward isolated application layers. Desktop applications usually come as Flatpak or Snap packages, command-line tools run inside containers managed by Toolbx or Distrobox, and services run as container workloads. Only when a component truly belongs in the base, such as a driver, is it layered into the image.
The decision table below summarizes where each kind of software should go.
| Software type | Recommended method | Reason |
|---|---|---|
| Graphical desktop application | Flatpak from a trusted repository | Sandboxed and updated separately |
| Development toolchain | Toolbx or Distrobox container | Keeps compilers out of the base |
| Server service | Container managed by Podman or Kubernetes | Portable and independently versioned |
| Hardware driver or kernel module | Layered package or custom image | Must load with the kernel |
| Fleet-wide configuration | Image build or declarative config | Identical state on every machine |
Package layering is convenient but should stay minimal. Every layered package must be reapplied on each update, which lengthens update time and can block an update when the layered package conflicts with the new base.
Limitations and common mistakes
An immutable operating system reduces maintenance risk but introduces new constraints that users must plan for. The most frequent problems come from treating it like a conventional system.
- Reboot required for updates: changes to the base apply only after a restart, which complicates maintenance windows on servers without redundancy.
- Writable areas still drift: files under
/etcand/varpersist across deployments, so a broken configuration file can survive a rollback. - Rollback does not restore user data: switching deployments reverts system files, not documents, databases or application state, so a system backup remains necessary.
- Proprietary drivers can lag: third-party kernel modules must match each new kernel, and a missing build can prevent the update from staging.
- Disk usage grows: retaining several deployments consumes extra storage, typically a few gigabytes, until old versions are pruned.
- Learning curve: administrators must learn new tools and workflows instead of editing system files directly.
Despite these limits, the model is not inherently less flexible. A custom image built from a declarative definition can include any package or setting, but the change is made once in the build rather than repeatedly on each machine.
The short version
An immutable operating system protects its own core. The essential system files are locked, so neither programs nor users can change them by accident while the computer runs.
When an update arrives, the system does not repair itself piece by piece. It prepares a complete new version next to the old one and switches to it when the computer restarts. If something goes wrong, the computer can start the old version again in a moment. It is a little like keeping the previous edition of a book on the shelf until the new edition has been checked.
Where it makes a difference
A university computer lab runs 120 workstations on an atomic desktop distribution. The IT team builds one custom system image each month with the required compilers, drivers and settings, tests it on five machines and then publishes it to the whole lab. Each workstation downloads the new deployment in the background during the day and switches to it at the scheduled overnight reboot.
One month, a new graphics driver causes a blank screen on older machines. Instead of reinstalling or troubleshooting each computer, a technician selects the previous deployment from the boot menu and then marks it as the default for the affected group. The lab is back in service within about fifteen minutes, and student files in the home directories remain untouched because they were never part of the system image.