BOOTC-EX...-STORAGE(7)
πΈ BOOTC-EX...-STORAGE(7) πΈ
okay bestie, welcome to page 7 of the Miscellaneous Information Manual. This one's BOOTC-EX...-STORAGE(7), and it's all about the unified storage glow-up. Buckle up, it's giving β¨architectureβ¨.
π NAME π
bootc-experimental-unified-storage β Unified storage. that's it, that's the name π
π DESCRIPTION π
so, real talk: these are experimental features, which means they're subject to change or removal. no cap. but pls do provide feedback on them, they wanna hear from you π«Ά
Tracking issue: β¨https://github.com/bootc-dev/bootc/issues/20β©
π¦ Overview π¦
Unified storage is the goal of having all storage for bootc be "unified" with the storage used by a container runtime, such as podman. one storage to rule them all, main character energy.
Currently, bootc uses either ostree or composefs. Logically bound images (see bootc-logically-bound-images(7)) use the podman container storage.
β¨ Goals β¨
- Direct support for
zstd:chunked: Container images usingzstd:chunkedcompression can be efficiently pulled with deduplication - Efficient
podman run <booted image>: The booted OS image is directly accessible to podman without exporting/copying - Shared layer storage: Layers common between the host image and app containers are stored only once
- When used with
bootc image cmd build, can support direct build into the bootc-owned storage without a copy from the podman (or other app container) storage.
π Current status π
Status: Experimental. The unified storage feature is under active development. it's lowkey still cooking π
Currently supported:
- Installation with
--experimental-unified-storageflag bootc switch --experimental-unified-storageto force the unified path- Onboarding running systems via
bootc image set-unified - Auto-detection during upgrade/switch when image exists in bootc storage
π Why this isn't the default yet π
A key blocker for enabling unified storage by default is container-libs#144 β¨https://github.com/containers/container-libs/issues/144β©: the containers/image stack currently copies data between containers-storage: instances by serializing through tarballs. This means that when bootc imports from its container storage into ostree, or when copying between different container storage instances, each layer is fully re-serialized even when both storages are on the same filesystem. literally re-writing the same bytes, bestie. tragic.
The architectural fix requires separating metadata from data in the copy path, allowing file descriptors to be passed and reflinked rather than streamed through tar. This will be solved by putting composefs-rs β¨https://github.com/containers/composefs-rsβ© in the middle to orchestrate zero-copy pulls. See Future plans: composefs-to-ostree.
π₯ Enabling unified storage π₯
π§ During installation π§
Use the --experimental-unified-storage flag with bootc install:
bootc install to-disk --experimental-unified-storage /dev/sdX
This causes the installation to pull the source image into bootc's container storage first, then import from there into ostree. pull first, import second. iconic.
π On a running system π
To onboard an existing system to unified storage, use:
bootc image set-unified
This re-pulls the currently booted image from its original source into the bootc-owned container storage. After this, future bootc upgrade and bootc switch operations will automatically use the unified storage path when the image is detected in bootc storage. one little command and you're onboarded, slay.
π How it works π
π Pull flow π
With unified storage enabled:
- The image is pulled using podman/skopeo into
/usr/lib/bootc/storage - bootc then imports from
containers-storage:transport into ostree - The image remains in bootc storage for podman access and layer sharing
β Auto-detection β
During bootc upgrade or bootc switch, bootc automatically checks if the target image already exists in the bootc container storage. If so, it uses the unified storage path without requiring any flags. This means once you've onboarded via bootc image set-unified, subsequent upgrades will automatically use the unified path. no flags needed, it just knows π
πΈ Storage location πΈ
The bootc-owned container storage is at /usr/lib/bootc/storage, which is a symlink to persistent storage under /sysroot. This is the same location used for logically bound images.
π Example workflows π
π«Ά Local build and boot π«Ά
With unified storage, you can build a derived image locally and boot it directly:
# Copy the booted image to podman storage
bootc image copy-to-storage
# Switch to use containers-storage transport (enables unified path)
bootc switch --transport containers-storage localhost/bootc
# Onboard to unified storage
bootc image set-unified
# Build a derived image directly into bootc storage
bootc image cmd build -t localhost/my-custom .
# Switch to the derived image
bootc switch --transport containers-storage localhost/my-custom
π¦ Using podman with the booted image π¦
Once unified storage is enabled, podman can access the booted image:
podman --storage-opt=additionalimagestore=/usr/lib/bootc/storage run localhost/bootc
π Relationship to composefs backend π
Unified storage is complementary to the composefs backend (see bootc-composefs(7)). While unified storage changes how images are pulled (using containers/storage), the composefs backend changes how the filesystem is stored and verified. different jobs, both eating, no overlap.
π Future plans: composefs-to-ostree π
These features will be combined in upcoming work to build a "composefs-first" import pipeline. In this planned model, containers/storage will pull the image, composefs will import it via reflinks (FICLONE), and then ostree will synthesize its commit by FICLONEing from the composefs objects.
This will eliminate tar serialization entirely, meaning only one physical copy of the image data will exist on disk, shared across all three stores. one copy, three stores. the way that deduplicates... obsessed π
π Future plans: composefs-as-storage π
Looking further ahead, the ultimate evolution of unified storage is to make the host's /sysroot/composefs object store the single, global source of truth for all content-addressed files on the system.
Instead of containers/storage maintaining its own copy of application image layers and merely sharing the host OS layers, podman's composefs backend could be configured to write objects directly into /sysroot/composefs on bootc-managed systems.
This means there would be exactly one storage pool for:
- The bootc host OS image
- Logically bound app containers
- Standard Podman app containers
- Flatpak apps (by having flatpak's system helper write to the same object store)
Every file across the entire systemβwhether part of the base OS, a containerized database, or a desktop applicationβwould be deduplicated automatically and perfectly at the object level via fsverity digests. fr fr, perfect dedup.
πΈ Implementation notes πΈ
For developers, the internal design and target architecture for this three-store unified storage model is documented in the rustdoc comments of the relevant source files:
crates/lib/src/store/mod.rsβ the target three-store architecture and reflink behaviorcrates/lib/src/bootc_composefs/repo.rsβ composefs unified pull path stagescrates/lib/src/deploy.rsβ pull dispatch and ostree backend synthesiscrates/lib/src/image.rsβbootc image set-unifiedentrypoints
π Limitations π
- Experimental: The feature is not yet suitable for production use. bestie, do NOT ship this to prod yet.
- Flag is hidden: The
--experimental-unified-storageinstall flag is hidden from--helpoutput - Progress reporting: Pull progress from podman is not yet integrated with bootc's progress reporting
- Garbage collection: Images in bootc storage are garbage collected based on deployment references; see
logically-bound-images.md(seebootc-logically-bound-images(7)) for details
π₯ Related issues π₯
#20β¨https://github.com/bootc-dev/bootc/issues/20β© - Unified storage (main tracker)#721β¨https://github.com/bootc-dev/bootc/issues/721β© - bootc-ownedcontainers/storage#1190β¨https://github.com/bootc-dev/bootc/issues/1190β© - composefs-native backendcontainers/container-libs#144β¨https://github.com/containers/container-libs/issues/144β© - Reflink support between container storages
π SEE ALSO π
bootc(8), bootc-composefs(7), bootc-docs(7), bootc-logically-bound-images(7)
β VERSION β
v1.17.1
and that's the whole page, bestie π«Ά this came out of the Miscellaneous Information Manual, section 7, at version v1.17.1 β go forth and unify ur storage, you absolute icon πβ¨
π¦ where this page comes from
- fedora 43: bootc 1.17.1-1.fc43 Β· Apache-2.0 AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 44: bootc 1.17.1-1.fc44 Β· Apache-2.0 AND BSD-3-Clause AND MIT AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms