mount.composefs(1)(composefs)
π mount.composefs β bestie, let's mount a composefs image π
okay so this is the mount.composefs(1) page from the composefs manual, and it's literally gonna be your new fave. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
mount.composefs β mount a composefs filesystem image π¦
β¨ SYNOPSIS β¨
mount.composefs [-o OPTIONS] IMAGE TARGETDIR
β¨ DESCRIPTION β¨
so the tea is: the composefs project uses an EROFS image file to store metadata, plus one or more separate directories that hold the content-addressed backing data for regular files. like, metadata in one place, actual file contents in another. it's giving organized. π
mount.composefs mounts one of those EROFS files, combined with a given set of basedir, at the location you pick. you can call it directly, or you can be all sneaky and let it act as a mount helper by running mount -t composefs .... either way, she ate. π
β¨ OPTIONS β¨
first things first, bestie: the IMAGE argument you pass in must be a valid composefs (EROFS) metadata image, no exceptions. and the TARGETDIR is what gets used as the mount target. π―
when you pass stuff through the -o OPTIONS argument, mount.composefs accepts the following options, all colon-separated. yes, colons. iykyk.
basedir=PATHβ this path is used to resolve the non-empty file references that are stored in the composefs metadata image. the big main-character use case here is making it the exact same path you handed tomkcomposefs --digest-store=PATH. and guess what? you can specify multiple paths, separated by:. slay. πdigest=DIGESTβ the image file gets validated to have the specified fs-verity digest before it's ever used. this is what gives you a whole chain of trust, so that only the expected data is ever visible in the mount. lowkey iconic. this option also impliesverity.idmap=PATHβ specify a path to a user namespace whose ID mapping should be used. the typical format for this kind of path is/proc/<pid>/ns/userπ«Άverityβ if this is specified, all files in theIMAGEmust specify an fs-verity digest, and all the files in the base dirs must have a matching fs-verity digest. no cap.
note: this needs support for the overlayfs "verity" option in the kernel, which was added in 6.6rc1. so check your kernel bestie, don't come crying to me π
roβ mounts the filesystem read-only. this is mainly useful when you're usingupperdir, since unlayered composefs images are naturally readonly anyway. πrwβ overrides a previousrooption. plot twist!upperdirβ specify an upper dir in the overlayfs mount that composefs uses. this lets you have a writable layer sitting on top of the composefs image. see the overlayfs docs for details, i'm not gonna gatekeep. πworkdirβ specifies an overlayfs workdir to go withupperdir. they're a package deal, fr fr. π
β¨ SEE ALSO β¨
composefs-info(1)mount.composefs(1)- composefs upstream β¨https://github.com/containers/composefsβ© π
and that's the whole page, periodt. π this was the User source, mount.composefs(1) in the composefs manual, and the date slot on this one is just chilling as a lil blank β so no date drama here. go mount something gorgeous, bestie. mwah. π β¨ππ¦π
π¦ where this page comes from
- arch rolling: composefs 1.0.8-1 Β· LGPL-2.1-or-later AND BSD-2-Clause OR GPL-2.0-or-later AND GPL-2.0-only OR Apache-2.0 AND GPL-3.0-or-later
- fedora 43: composefs 1.0.8-3.fc43 Β· LGPL-2.0-or-later AND Apache-2.0
- fedora 43: composefs 1.0.8-3.fc43 Β· LGPL-2.0-or-later AND Apache-2.0
- fedora 44: composefs 1.0.8-5.fc44 Β· LGPL-2.0-or-later AND Apache-2.0
- fedora 44: composefs 1.0.8-5.fc44 Β· LGPL-2.0-or-later AND Apache-2.0
- nixos 26.05: composefs 1.0.8
- nixpkgs unstable: composefs 1.0.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms