Skip to main content

passthrough_rootfs_overlay

Function passthrough_rootfs_overlay 

Source
pub fn passthrough_rootfs_overlay(
    lower: &Path,
    upper: &Path,
    work: &Path,
) -> Result<FuseFileSystemMount<OverlayFs>, MountError>
Expand description

Convenience: build a passthrough-backed rootfs overlay from host directories.

Wraps lower (RO) and upper (RW) host dirs as PassthroughFs layers and composes them via rootfs_overlay. This is the unit-test / bootstrap shape; production rootfs (FS-B) substitutes a RAFS lower.