Immutable operating system

Also known as: immutable OS · atomic distribution

On this page 7

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.

MechanismHow it stores system versionsTypical users
OSTree / rpm-ostreeContent-addressed file trees with hard-linked deploymentsFedora Silverblue, Fedora CoreOS
Btrfs snapshotsCopy-on-write subvolume snapshots of the rootopenSUSE MicroOS, Aeon
A/B partitionsTwo full root partitions, one active and one standbyChromeOS, Flatcar, Android
Nix storeHash-named package paths assembled into generationsNixOS
Sealed system volumeCryptographically signed snapshot of the system volumemacOS
Bootable container imagesOCI container image deployed as the host systembootc-based systems
Common implementation mechanisms

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.

PropertyWhat it meansProblem it prevents
AtomicityAn update applies fully or not at allHalf-installed packages after a power loss
Read-only rootRunning processes cannot alter system filesAccidental or malicious system tampering
Versioned deploymentsEach system state has an identifierUnknown differences between machines
RollbackThe previous state boots in one stepLong recovery after a faulty update
ReproducibilityThe same image yields the same systemConfiguration drift across a fleet
Core properties of immutable systems

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.

ApproachWhen changes take effectRollback methodMain trade-off
Traditional package updatesImmediately, file by fileManual downgrade or backup restoreFlexible but prone to drift
Immutable operating systemAt the next rebootBoot the previous deploymentPredictable but less tweakable
A/B system updatesAfter switching slots on rebootSwitch back to the other slotDoubles root storage needs
Live patchingImmediately, in kernel memoryUnload the patch moduleCovers only selected kernel fixes
System image restoreAfter a full restoreReapply an older imageSlow and often loses recent data
Comparison with related update approaches

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 typeRecommended methodReason
Graphical desktop applicationFlatpak from a trusted repositorySandboxed and updated separately
Development toolchainToolbx or Distrobox containerKeeps compilers out of the base
Server serviceContainer managed by Podman or KubernetesPortable and independently versioned
Hardware driver or kernel moduleLayered package or custom imageMust load with the kernel
Fleet-wide configurationImage build or declarative configIdentical state on every machine
Where to place software on an immutable system

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 /etc and /var persist 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.