I maintain Zainium OS, an independent, immutable Linux distribution built from scratch (not a derivative). While building it, I found that FHS 3.0 doesn’t map cleanly onto a modern immutable, image-based system, so I wrote a 23-page specification to fill the gaps: the Dualayer Hierarchy Standard (DHS 1.1).

Why FHS leaves this open

  1. Single writable tree assumption: FHS has no notion of a sealed, verified base vs. a mutable overlay — the central property of modern immutable systems (Fedora Silverblue, openSUSE MicroOS, Ubuntu Core, etc.).
  2. /usr-merge isn’t enough: It resolved one ambiguity, but didn’t give immutable systems a standard boundary between vendor base files and machine-local state.
  3. Single C library assumption: FHS assumes one libc (/lib, /lib64, /usr/include) and has no model for musl and glibc coexisting as first-class citizens without loader, header, or shared-library collisions.

What DHS 1.1 is, in short

DHS removes FHS directories (/usr, /bin, /sbin, /lib, /lib32, /lib64, /libx32, /etc, /var, /boot) from / completely — not even as symlinks — and organizes the OS into explicit layers under /overlayer:

/
├── overlayer/   (the entire OS: all layers)
├── home/        (user home directories)
├── root/        (root home)
├── dev/         (devtmpfs)
├── proc/        (procfs)
├── sys/         (sysfs)
├── run/         (tmpfs; removable media at /run/media/user/label)
└── tmp/         (temporary files)

Under /overlayer/:

/overlayer/
├── syshub/           (read-only, self-sufficient base OS; boots without userland)
├── userland/         (mutable layer for installed packages: union/, work/, registry/)
├── ignition/         (kernels, initramfs, bootloader; mounted read-only)
├── agents/           (optional instructions/policies for AI coding agents)
└── .syshub-pending/  (staged atomic base upgrade, applied by initramfs at next boot)

At boot, the initramfs applies any staged base upgrade from .syshub-pending, then composes /overlayer/syshub (lower) and /overlayer/userland/union (upper) via OverlayFS. (In Zainium OS, the base is additionally verified with fs-verity and mounted via a sealed OverlayFS.)

Dual-libc coexistence (musl + glibc)

Either C library can be primary; the distribution chooses. Each libc lives in its own GNU target-triplet directory (e.g., x86_64-zainium-linux-musl and x86_64-zainium-linux-gnu) with its own dynamic loader, headers, C++ runtime, loader config, and toolchain. Library search paths never cross, while both read shared system configuration (passwd, hosts, resolv.conf, zoneinfo) from /overlayer/syshub/etc.

Running FHS software

Foreign packages are adapted at install time (PT_INTERP, RPATH, pkg-config, shebangs). Runtime FHS path lookups are handled by a preload resolver and loader redirection — the known LD_PRELOAD limitation for statically linked and setuid binaries is documented in Chapter 7 of the spec.

What I’m looking for

  • Honest technical critique: where does this layout hold up, where does it break down, and what edge cases are missing?
  • For immutable, image-based Linux systems, does a formal zero-FHS layout like DHS make sense, or is staying inside FHS + /usr-merge still the better long-term trade-off?