Overlay Filesystem

Content-Addressable Overlay Filesystem for Linux - ComposeFS / HN

  • Using Composefs in OSTree - The idea is that instead of checking out a hardlinked directory and passing that on the kernel commandline we build a composefs image, enable fs-verity on it and put its filename and digest on the kernel command line instead.

caption

Mount overlayfs within unprivileged user namespace

$ unshare --mount -r			# create a new mount namespace. (with --map-root-user)
mkdir upperdir lowerdir mergeddir
mount -t overlay -o lowerdir=/path/to/lowerdir,upperdir=/path/to/upperdir,workdir=/path/to/workdir overlay /path/to/mergeddir

see also

Written on June 15, 2023, Last update on December 3, 2023
filesystem content docker cgroups