1mount.composefs(1) User Commands mount.composefs(1)
2
3
4
6 mount.composefs - mount a composefs filesystem image
7
9 mount.composefs [-o OPTIONS] IMAGE TARGETDIR
10
12 The composefs project uses EROFS image file to store metadata, and one
13 or more separate directories containing content-addressed backing data
14 for regular files.
15
16 mount.composefs mounts such an EROFS file in combination with a given
17 set of basedir at the specified location. It can be called directly,
18 or as a mount helper by running mount -t composefst ....
19
21 The provided IMAGE argument must be a valid composefs (EROFS) metadata
22 image. The TARGETDIR will be used as a mount target.
23
24 mount.composefs accepts the following colon-separated mount options
25 when passed via the -o OPTIONS argument.
26
27 basedir=PATH
28 This path will be used to resolve non-empty file references
29 stored in the composefs metadata image. A primary use case is
30 to have this be the same path provided to mkcomposefs --digest-
31 store=PATH.
32
33 Multiple paths can be specified, separated by :.
34
35 digest=DIGEST
36 The image file is validated to have the specified fs-verity di‐
37 gest before being used. This allows a chain of trust the en‐
38 sures only the expected data is ever visible in the mount.
39
40 This option also implies verity.
41
42 verity If this is specified, all files in the IMAGE must specify an fs-
43 verity digest, and all the files in the base dirs must have a
44 matching fs-verity digest.
45
46 Note: This needs support for the overlayfs “verity” option in
47 the kernel, which was added in 6.6rc1.
48
49 ro Mounts the filesystem read-only. This is mainly useful when us‐
50 ing upperdir as unlayered composefs images are naturally readon‐
51 ly.
52
53 rw Overrides a previous ro option
54
55 upperdir
56 Specify an upper dir in the overlayfs mount that composefs uses.
57 This allows a writable layer on top of the composefs image. See
58 overlayfs docs for details.
59
60 workdir
61 Specifies an overlayfs workdir to go with upperdir.
62
64 composefs-info(1), mount.composefs(1)
65
66 composefs upstream (https://github.com/containers/composefs)
67
68
69
70composefs mount.composefs(1)