Your /etc directory isn’t what it used to be: Taming configs on bootc systems
Technical Briefing | 10/14/2026
We all chase stability and predictability in production. Immutable operating systems, like those built with bootc, promise just that: a known-good base, easy rollbacks, no ‘snowflake’ servers. It’s a fantastic idea, until you hit something as fundamental as configuration. Most of us are hardwired to vim /etc/whatever.conf, restart a service, and call it a day. But with bootc, that muscle memory will bite you, fast. Suddenly, your carefully crafted changes vanish after a reboot, or an update inexplicably wipes out critical service settings. It’s frustrating, and it happens more often than you’d think.
The Core Principle: Why /etc Breaks the Immutable Model
At its heart, an immutable OS means your root filesystem, the one holding all the core operating system files, doesn’t change after it’s deployed. It’s read-only, versioned, and typically derived from a container image. This is great for consistency. But /etc is where a ton of *mutable* state lives: network settings, user configurations, daemon parameters, systemd unit overrides. These are things you often *need* to change per-instance or over time. And that’s where the collision happens. You can’t just modify a read-only filesystem directly; you’re going to need a different approach.
Where bootc Keeps Your Changeable Bits
bootc, being an rpm-ostree-based system, handles this conflict through layering. Your base OS is indeed immutable, pulled directly from a container image. Any changes you make to files in /etc aren’t written back into that base image. Instead, they’re stored in a separate, writable overlay layer. This allows local modifications without altering the core OS image. It’s clever, because it means you can update the base image without losing your custom config, *in theory*. But I’ve seen this silently fail in practice when admins expect a direct file edit to survive a full image upgrade without proper migration. It’s important to know what immutable image you’re even starting from.
bootc status
That command shows you the currently deployed bootc image and its identifier. This is your immutable base. Any /etc changes that aren’t baked into that image live on top, in that ephemeral-feeling overlay. The trick isn’t *if* you can change /etc, it’s *how* you make those changes sticky, manageable, and recoverable, especially across updates or instance rebuilds. Simply editing a file usually works for the current session, and maybe even across reboots if the overlay persists, but it breaks the immutable model’s benefits and sets you up for nasty surprises during upgrades.
- Image-based config: Bake default and stable system configurations directly into your bootc image using your build process. Treat this as your ‘golden master’ for truly static OS settings.
- Post-boot automation: Use cloud-init or a configuration management tool (Ansible, Puppet) to apply instance-specific or ephemeral settings on first boot and subsequent updates. This writes to the mutable overlay in a controlled, idempotent way.
- Systemd drop-ins: For minor service overrides, systemd drop-in files (/etc/systemd/system/service.d/*.conf) are your friend. They layer nicely over the image’s service definitions and are designed for local adjustments.
- Separate data volumes: If an application needs truly mutable configuration files that shouldn’t be part of the OS, mount a separate data volume (e.g., /var/lib/my_app/config) and point your application there. This isolates application data from OS config changes.
Forget the old model of endlessly tweaking /etc by hand. On bootc systems, you’re either defining the base image for universal settings, or you’re providing ephemeral, instance-specific overlays via automation. It’s a different way to think about things, but once you embrace it, you get that stability and predictability you signed up for. And when you’re trying to figure out why a config change didn’t stick, always start by asking: ‘Is this part of the base image, or is it something my automation should have handled?’ You’ll debug a lot faster, trust me.
