fuse-overlayfs-snapshotter: add recipe
PATCH 1/1 fuse-overlayfs-snapshotter: add recipe
From: Thomas Perrot <[email protected]>
Add fuse-overlayfs-snapshotter v2.1.7, enabling containerd to use fuse-overlayfs as its snapshotter. This supports container storage on filesystems where kernel overlayfs is unavailable and rootless container workloads on kernels without unprivileged overlayfs support.
Install the gRPC proxy service and its configuration example, along with the generated Go module source and license metadata.
--- .../files/config.toml | 9 + .../files/containerd-fuse-overlayfs.service | 15 + .../fuse-overlayfs-snapshotter_git.bb | 95 +++++ .../go-mod-cache.inc | 332 ++++++++++++++++++ .../fuse-overlayfs-snapshotter/go-mod-git.inc | 312 ++++++++++++++++ .../go-mod-hybrid-cache.inc | 34 ++ .../go-mod-hybrid-git.inc | 31 ++ .../go-mod-hybrid-gomod.inc | 303 ++++++++++++++++ .../go-mod-licenses.inc | 50 +++ 9 files changed, 1181 insertions(+) create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/files/config.toml create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/files/containerd-fuse-overlayfs.service create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/fuse-overlayfs-snapshotter_git.bb create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-cache.inc create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-git.inc create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-cache.inc create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-git.inc create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-gomod.inc create mode 100644 recipes-containers/fuse-overlayfs-snapshotter/go-mod-licenses.inc
recipes-containers/fuse-overlayfs-snapshotter/files/config.toml new file +9 -0
@@ -0,0 +1,9 @@ +version = 2 + +# The fuse-overlayfs snapshotter is provided by the containerd-fuse-overlayfs-grpc +# proxy plugin (containerd-fuse-overlayfs.service). Docker selects it with +# "storage-driver": "fuse-overlayfs" in /etc/docker/daemon.json. +[proxy_plugins] + [proxy_plugins."fuse-overlayfs"] + type = "snapshot" + address = "/run/containerd-fuse-overlayfs/containerd-fuse-overlayfs.sock"
recipes-containers/fuse-overlayfs-snapshotter/files/containerd-fuse-overlayfs.service new file +15 -0
@@ -0,0 +1,15 @@ +[Unit] +Description=containerd fuse-overlayfs snapshotter gRPC proxy plugin +Documentation=https://github.com/containerd/fuse-overlayfs-snapshotter +After=local-fs.target +Before=containerd.service docker.service + +[Service] +RuntimeDirectory=containerd-fuse-overlayfs +ExecStart=/usr/bin/containerd-fuse-overlayfs-grpc /run/containerd-fuse-overlayfs/containerd-fuse-overlayfs.sock /mnt/data/containerd-fuse-overlayfs +Restart=on-failure +RestartSec=5 +OOMScoreAdjust=-999 + +[Install] +WantedBy=multi-user.target
recipes-containers/fuse-overlayfs-snapshotter/fuse-overlayfs-snapshotter_git.bb new file +95 -0
95 lines not on this page · raw message
recipes-containers/fuse-overlayfs-snapshotter/go-mod-cache.inc new file +332 -0
332 lines not on this page · raw message
recipes-containers/fuse-overlayfs-snapshotter/go-mod-git.inc new file +312 -0
312 lines not on this page · raw message
recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-cache.inc new file +34 -0
@@ -0,0 +1,34 @@ +# Generated by oe-go-mod-fetcher-hybrid.py +# Metadata for git-fetched modules (VCS path) +# Used by go-mod-vcs.bbclass to build module cache from git checkouts + +inherit go-mod-vcs + +# Module metadata for cache building (one module per line) +GO_MODULE_CACHE_DATA = '[\ +{"module":"github.com/containerd/btrfs/v2","version":"v2.0.0","vcs_hash":"8a2ee3ce7d871ae06962c07984197acdfd6035091884c9db0791378ac0229823","timestamp":"2023-02-10T01:01:25Z","subdir":"","vcs_ref":"refs/tags/v2.0.0"},\ +{"module":"github.com/containerd/cgroups/v3","version":"v3.1.0","vcs_hash":"afcdc6b74bd9b0d30fcd801d4175ef54783d125d29b7cf31da1bed7135dae03e","timestamp":"2025-10-27T22:43:47Z","subdir":"","vcs_ref":"refs/tags/v3.1.0"},\ +{"module":"github.com/containerd/console","version":"v1.0.5","vcs_hash":"a38aca664db28f607862e39301d2fd06b3c58312662cbd189f451215c3eb9894","timestamp":"2025-05-20T06:25:07Z","subdir":"","vcs_ref":"refs/tags/v1.0.5"},\ +{"module":"github.com/containerd/containerd/api","version":"v1.10.0","vcs_hash":"4ae09c91c596d23f3127d6821ac6178aa6512e66eba4da3a39e7c94903e2407b","timestamp":"2025-11-05T15:11:32Z","subdir":"api","vcs_ref":"refs/tags/api/v1.10.0"},\ +{"module":"github.com/containerd/containerd/v2","version":"v2.2.0","vcs_hash":"003bc34c1dde3a2ee67d971788503962fb4b2b4dd2f0c77c2b690f26457b75ca","timestamp":"2025-11-06T01:13:11Z","subdir":"","vcs_ref":"refs/tags/v2.2.0"},\ +{"module":"github.com/containerd/continuity","version":"v0.4.5","vcs_hash":"ef286b146362aa5da58f9ef4e88323a32e1ea45eda78c6d484875972ce0a81e0","timestamp":"2024-10-30T04:18:59Z","subdir":"","vcs_ref":"refs/tags/v0.4.5"},\ +{"module":"github.com/containerd/errdefs","version":"v1.0.0","vcs_hash":"d9d1c9949e837f39205605237b656e944c7d0cd69e48a906fabdb6bebe0edb66","timestamp":"2024-10-08T13:10:09Z","subdir":"","vcs_ref":"refs/tags/v1.0.0"},\ +{"module":"github.com/containerd/errdefs/pkg","version":"v0.3.0","vcs_hash":"d9d1c9949e837f39205605237b656e944c7d0cd69e48a906fabdb6bebe0edb66","timestamp":"2024-10-08T13:10:09Z","subdir":"pkg","vcs_ref":"refs/tags/pkg/v0.3.0"},\ +{"module":"github.com/containerd/fifo","version":"v1.1.0","vcs_hash":"e4b0152cde11b075ce8a8a9f0db77d54abb72ee1bab1036ab0c157b678aade47","timestamp":"2023-02-17T21:37:13Z","subdir":"","vcs_ref":"refs/tags/v1.1.0"},\ +{"module":"github.com/containerd/fuse-overlayfs-snapshotter/v2","version":"v2.1.7","vcs_hash":"ebd7034108ca2f7b1a5d3724f3248f21f9cf17f5ecf3db9b5c71ee2e6de56563","timestamp":"2025-11-06T01:42:49Z","subdir":"v2","vcs_ref":"refs/tags/v2.1.7"},\ +{"module":"github.com/containerd/go-cni","version":"v1.1.13","vcs_hash":"42aaa61d2bb4bd3a1eb278daa53bed3b31e3af601d35dafceb8b7714333cef05","timestamp":"2025-07-01T22:01:58Z","subdir":"","vcs_ref":"refs/tags/v1.1.13"},\ +{"module":"github.com/containerd/go-runc","version":"v1.1.0","vcs_hash":"9044e9e240020298712a51a4db4736afc66d70b1870cf11cac73c0661be06842","timestamp":"2023-05-17T04:55:20Z","subdir":"","vcs_ref":"refs/tags/v1.1.0"},\ +{"module":"github.com/containerd/imgcrypt/v2","version":"v2.0.1","vcs_hash":"cf07f49bde1cc9b1c042dfb7055d38c832cb69592e89521daa5ad46b367e047b","timestamp":"2025-03-18T01:41:40Z","subdir":"","vcs_ref":"refs/tags/v2.0.1"},\ +{"module":"github.com/containerd/log","version":"v0.1.0","vcs_hash":"697be36d9b8a0eb34f8591d0f69b6d596e1e9341b5944ebf81ddd334b1907bc6","timestamp":"2023-09-09T00:27:15Z","subdir":"","vcs_ref":"refs/tags/v0.1.0"},\ +{"module":"github.com/containerd/nri","version":"v0.10.0","vcs_hash":"9e8aeba250dfc002831e46adace86815de4667ce3a2125acdbc5818f536de05c","timestamp":"2025-08-16T08:15:07Z","subdir":"","vcs_ref":"refs/tags/v0.10.0"},\ +{"module":"github.com/containerd/otelttrpc","version":"v0.1.0","vcs_hash":"c27d4a7087a7f4624cdf40c161f9707dbb90cd2d71159840f7c7b610260e9f24","timestamp":"2025-01-09T19:17:17Z","subdir":"","vcs_ref":"refs/tags/v0.1.0"},\ +{"module":"github.com/containerd/platforms","version":"v1.0.0-rc.2","vcs_hash":"a5b697e2dcecbe42edb518786dede1d257aecc63276621eb03e3917cae97e344","timestamp":"2025-08-21T22:24:38Z","subdir":"","vcs_ref":"refs/tags/v1.0.0-rc.2"},\ +{"module":"github.com/containerd/plugin","version":"v1.0.0","vcs_hash":"f786b847c888d27ca5c517b566772c78216ed963d31d5119a32ebad7494855ea","timestamp":"2024-10-20T22:03:21Z","subdir":"","vcs_ref":"refs/tags/v1.0.0"},\ +{"module":"github.com/containerd/protobuild","version":"v0.3.0","vcs_hash":"7cfac99318ce6513d3f62c22baae310b7cc70562da7c000901e610a84fb83c70","timestamp":"2022-11-07T19:29:47Z","subdir":"","vcs_ref":"refs/tags/v0.3.0"},\ +{"module":"github.com/containerd/stargz-snapshotter/estargz","version":"v0.14.3","vcs_hash":"c0a45b74bb21bc7e7c0163054aff213d8dc61e3fa18ff5547b732362f881d13a","timestamp":"2023-03-08T08:28:23Z","subdir":"estargz","vcs_ref":"refs/tags/estargz/v0.14.3"},\ +{"module":"github.com/containerd/ttrpc","version":"v1.2.7","vcs_hash":"89e0e59ec2637becf69ff869326d460e7b3aa5c251d58a6d42981bc9c12360fd","timestamp":"2024-12-28T23:29:38Z","subdir":"","vcs_ref":"refs/tags/v1.2.7"},\ +{"module":"github.com/containerd/typeurl/v2","version":"v2.2.3","vcs_hash":"60bc9255cadbea28631b3293cd629cbe0b9a9cffb987712231cdc4f9dc75a2cb","timestamp":"2024-11-07T03:45:23Z","subdir":"","vcs_ref":"refs/tags/v2.2.3"},\ +{"module":"github.com/containerd/zfs/v2","version":"v2.0.0-rc.0","vcs_hash":"760d9b417b3649f7335a5437c1ddc3ce9a7d15632bcac73a7aabc3c145104a12","timestamp":"2024-10-24T13:31:35Z","subdir":"","vcs_ref":"refs/tags/v2.0.0-rc.0"},\ +{"module":"k8s.io/api","version":"v0.34.1","vcs_hash":"5c4bbd0617f6f594b275f1999f97eca8f79dbb30e908e7d6b5c7a80fd5b9b0d2","timestamp":"2025-09-10T04:39:36Z","subdir":"","vcs_ref":"refs/tags/v0.34.1"},\ +{"module":"k8s.io/apimachinery","version":"v0.34.1","vcs_hash":"9131e9ebe36078f01c5a5e8e9866300b853aa46fab527d00fc089d4c16938663","timestamp":"2025-08-16T07:57:26Z","subdir":"","vcs_ref":"refs/tags/v0.34.1"},\ +{"module":"k8s.io/client-go","version":"v0.34.1","vcs_hash":"25b2ca19570dcf36fcfa8a5388cc7647944fee1a9a445671e69704dbd6f452b5","timestamp":"2025-09-10T04:55:33Z","subdir":"","vcs_ref":"refs/tags/v0.34.1"}]'
recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-git.inc new file +31 -0
@@ -0,0 +1,31 @@ +# Generated by oe-go-mod-fetcher-hybrid.py +# Go modules fetched from git repositories (VCS path) +# +# These modules are fetched directly from their git repositories. +# They provide full VCS provenance and allow easy SRCREV bumping. + +SRC_URI += "git://github.com/containerd/btrfs;protocol=https;nobranch=1;tag=v2.0.0;shallow=1;rev=f611cf12b33f43269574b2ad82bcb55e4d6f9982;name=git_afc7f4f6_0;destsuffix=vcs_cache/8a2ee3ce7d871ae06962c07984197acdfd6035091884c9db0791378ac0229823" +SRC_URI += "git://github.com/containerd/cgroups;protocol=https;nobranch=1;tag=v3.1.0;shallow=1;rev=fa024e5d81b610f004f42857e696d94b8961475a;name=git_85a7d8f6_0;destsuffix=vcs_cache/afcdc6b74bd9b0d30fcd801d4175ef54783d125d29b7cf31da1bed7135dae03e" +SRC_URI += "git://github.com/containerd/console;protocol=https;nobranch=1;tag=v1.0.5;shallow=1;rev=c8d962180f543ac07c008ecc79a413406ea10c0b;name=git_7dc259a2_0;destsuffix=vcs_cache/a38aca664db28f607862e39301d2fd06b3c58312662cbd189f451215c3eb9894" +SRC_URI += "git://github.com/containerd/containerd;protocol=https;nobranch=1;tag=api/v1.10.0;shallow=1;rev=8b34ce391bd114e080892cccfa956ef3807c207c;name=git_c2fd43eb_1;destsuffix=vcs_cache/4ae09c91c596d23f3127d6821ac6178aa6512e66eba4da3a39e7c94903e2407b" +SRC_URI += "git://github.com/containerd/containerd;protocol=https;nobranch=1;tag=v2.2.0;shallow=1;rev=1c4457e00facac03ce1d75f7b6777a7a851e5c41;name=git_c2fd43eb_0;destsuffix=vcs_cache/003bc34c1dde3a2ee67d971788503962fb4b2b4dd2f0c77c2b690f26457b75ca" +SRC_URI += "git://github.com/containerd/continuity;protocol=https;nobranch=1;tag=v0.4.5;shallow=1;rev=44e2adf7e9cd87330f3ad656e7a006ef91ed8c1e;name=git_b4d76115_0;destsuffix=vcs_cache/ef286b146362aa5da58f9ef4e88323a32e1ea45eda78c6d484875972ce0a81e0" +SRC_URI += "git://github.com/containerd/errdefs;protocol=https;nobranch=1;tag=pkg/v0.3.0;shallow=1;rev=4817405e4a3caeb7aee9dac68ed55339c59cb635;name=git_070120f7_0;destsuffix=vcs_cache/d9d1c9949e837f39205605237b656e944c7d0cd69e48a906fabdb6bebe0edb66" +SRC_URI += "git://github.com/containerd/fifo;protocol=https;nobranch=1;tag=v1.1.0;shallow=1;rev=151b205263c29d471e0d55c787d2ce9f5343fd46;name=git_6f3d1077_0;destsuffix=vcs_cache/e4b0152cde11b075ce8a8a9f0db77d54abb72ee1bab1036ab0c157b678aade47" +SRC_URI += "git://github.com/containerd/fuse-overlayfs-snapshotter;protocol=https;nobranch=1;tag=v2.1.7;shallow=1;rev=da57796c7d0a2b608abf173651cf148706e33337;name=git_923d9d3e_0;destsuffix=vcs_cache/ebd7034108ca2f7b1a5d3724f3248f21f9cf17f5ecf3db9b5c71ee2e6de56563" +SRC_URI += "git://github.com/containerd/go-cni;protocol=https;nobranch=1;tag=v1.1.13;shallow=1;rev=784f94e654944e41f86cf33ad49bfe07014c2e7e;name=git_cab8b449_0;destsuffix=vcs_cache/42aaa61d2bb4bd3a1eb278daa53bed3b31e3af601d35dafceb8b7714333cef05" +SRC_URI += "git://github.com/containerd/go-runc;protocol=https;nobranch=1;tag=v1.1.0;shallow=1;rev=df3c22d088ca919d1943efa8ae0cfc0514da0542;name=git_84c96084_0;destsuffix=vcs_cache/9044e9e240020298712a51a4db4736afc66d70b1870cf11cac73c0661be06842" +SRC_URI += "git://github.com/containerd/imgcrypt;protocol=https;nobranch=1;tag=v2.0.1;shallow=1;rev=c377ec98ff79ec9205eabf555ebd2ea784738c6c;name=git_3f4049aa_0;destsuffix=vcs_cache/cf07f49bde1cc9b1c042dfb7055d38c832cb69592e89521daa5ad46b367e047b" +SRC_URI += "git://github.com/containerd/log;protocol=https;nobranch=1;tag=v0.1.0;shallow=1;rev=0fc1e28871fdf2786e2cc51bbe4133db6547a199;name=git_b70b7359_0;destsuffix=vcs_cache/697be36d9b8a0eb34f8591d0f69b6d596e1e9341b5944ebf81ddd334b1907bc6" +SRC_URI += "git://github.com/containerd/nri;protocol=https;nobranch=1;tag=v0.10.0;shallow=1;rev=a2eea2bc19ada59eafdb1237a4720ef8ab11e5b1;name=git_523249c2_0;destsuffix=vcs_cache/9e8aeba250dfc002831e46adace86815de4667ce3a2125acdbc5818f536de05c" +SRC_URI += "git://github.com/containerd/otelttrpc;protocol=https;nobranch=1;tag=v0.1.0;shallow=1;rev=fa91cafe17adf59a0edc10650135dfd1dfb761c2;name=git_69c055ed_0;destsuffix=vcs_cache/c27d4a7087a7f4624cdf40c161f9707dbb90cd2d71159840f7c7b610260e9f24" +SRC_URI += "git://github.com/containerd/platforms;protocol=https;nobranch=1;tag=v1.0.0-rc.2;shallow=1;rev=2e51fd9435bd985e1753954b24f4b0453f4e4767;name=git_96693f8e_0;destsuffix=vcs_cache/a5b697e2dcecbe42edb518786dede1d257aecc63276621eb03e3917cae97e344" +SRC_URI += "git://github.com/containerd/plugin;protocol=https;nobranch=1;tag=v1.0.0;shallow=1;rev=19cedbf730bb9ae1c106c4d4df8492bb3d3fb8fd;name=git_0f1fd608_0;destsuffix=vcs_cache/f786b847c888d27ca5c517b566772c78216ed963d31d5119a32ebad7494855ea" +SRC_URI += "git://github.com/containerd/protobuild;protocol=https;nobranch=1;tag=v0.3.0;shallow=1;rev=168a8eac459f4c240ad54e1147f916056efd4c46;name=git_d8d48ca8_0;destsuffix=vcs_cache/7cfac99318ce6513d3f62c22baae310b7cc70562da7c000901e610a84fb83c70" +SRC_URI += "git://github.com/containerd/stargz-snapshotter;protocol=https;nobranch=1;tag=estargz/v0.14.3;shallow=1;rev=6ee6fa1a88df6ea098f6b7dddde29e33f09d5331;name=git_0c473532_0;destsuffix=vcs_cache/c0a45b74bb21bc7e7c0163054aff213d8dc61e3fa18ff5547b732362f881d13a" +SRC_URI += "git://github.com/containerd/ttrpc;protocol=https;nobranch=1;tag=v1.2.7;shallow=1;rev=3b8c8b75577584e412043afb7b561193a4a47d2e;name=git_1deba031_0;destsuffix=vcs_cache/89e0e59ec2637becf69ff869326d460e7b3aa5c251d58a6d42981bc9c12360fd" +SRC_URI += "git://github.com/containerd/typeurl;protocol=https;nobranch=1;tag=v2.2.3;shallow=1;rev=5b047adad57d172afa9654c019fe65bf0540cc4d;name=git_94e812bb_0;destsuffix=vcs_cache/60bc9255cadbea28631b3293cd629cbe0b9a9cffb987712231cdc4f9dc75a2cb" +SRC_URI += "git://github.com/containerd/zfs;protocol=https;nobranch=1;tag=v2.0.0-rc.0;shallow=1;rev=ac25940eac8d55a66eb07b5444da0bd98ab03f2b;name=git_62ef0568_0;destsuffix=vcs_cache/760d9b417b3649f7335a5437c1ddc3ce9a7d15632bcac73a7aabc3c145104a12" +SRC_URI += "git://github.com/kubernetes/api;protocol=https;nobranch=1;tag=v0.34.1;shallow=1;rev=77c9e29b068e14d4bcca2d6a4c85b2cc9da5a923;name=git_91745483_0;destsuffix=vcs_cache/5c4bbd0617f6f594b275f1999f97eca8f79dbb30e908e7d6b5c7a80fd5b9b0d2" +SRC_URI += "git://github.com/kubernetes/apimachinery;protocol=https;nobranch=1;tag=v0.34.1;shallow=1;rev=b72d93d174332f952a8d431419fece5e6f044bcb;name=git_d6490ebc_0;destsuffix=vcs_cache/9131e9ebe36078f01c5a5e8e9866300b853aa46fab527d00fc089d4c16938663" +SRC_URI += "git://github.com/kubernetes/client-go;protocol=https;nobranch=1;tag=v0.34.1;shallow=1;rev=d033c497ffef47be9b4f81abde5c3d94dd78089a;name=git_0356f569_0;destsuffix=vcs_cache/25b2ca19570dcf36fcfa8a5388cc7647944fee1a9a445671e69704dbd6f452b5"
recipes-containers/fuse-overlayfs-snapshotter/go-mod-hybrid-gomod.inc new file +303 -0
303 lines not on this page · raw message
recipes-containers/fuse-overlayfs-snapshotter/go-mod-licenses.inc new file +50 -0
50 lines not on this page · raw message
Signature · 1 line
2.55.0
Hi Thomas,
Reviewed the patch and it looks really good. I appreciate it following the layer conventions with the go-mod-vcs hybrid layout and the associated generated files.
One thing to resolve before I take it: the hardcoded /mnt/data reference in two places.
files/containerd-fuse-overlayfs.service:
ExecStart=/usr/bin/containerd-fuse-overlayfs-grpc \
/run/containerd-fuse-overlayfs/containerd-fuse-overlayfs.sock \
/mnt/data/containerd-fuse-overlayfs
fuse-overlayfs-snapshotter_git.bb do_install:
echo "d /mnt/data/containerd-fuse-overlayfs 0700 root root - -" \
> ${D}${sysconfdir}/tmpfiles.d/containerd-fuse-overlayfs.conf/mnt/data isn't a path that will exist on a stock meta-virt image. Was that intentional for your project (data partition mount convention, etc.), or a holdover from a local test setup? FHS-normal for a daemon's persistent store would be /var/lib/containerd-fuse- overlayfs/ -- which also matches what the upstream project README suggests when running out-of-box.
If /mnt/data is specific to your deployment and you need it, the usual pattern in meta-virt is a recipe variable with a sane default:
CONTAINERD_FUSE_OVERLAYFS_ROOT ?= "/var/lib/containerd-fuse-overlayfs"
referenced from both the service file (via a substitution during do_install) and the tmpfiles.d entry. Downstreams that need /mnt/data override the variable in their local.conf without carrying a bbappend.
A v2 switching the default to /var/lib/containerd-fuse-overlayfs and (optionally) parameterizing via the above variable would be the smallest change to get it into the tree. I'm happy to do the amend on apply if you'd prefer to not spin another patch -- let me know which you'd rather.
Cheers,
Bruce
Hello Bruce,
Quoted 37 lines · Bruce Ashfield via lists.yoctoproject.org
Hi Thomas,
Reviewed the patch and it looks really good. I appreciate it following the layer conventions with the go-mod-vcs hybrid layout and the associated generated files.
One thing to resolve before I take it: the hardcoded
/mnt/datareference in two places.files/containerd-fuse-overlayfs.service:
ExecStart=/usr/bin/containerd-fuse-overlayfs-grpc \
/run/containerd-fuse-overlayfs/containerd-fuse-overlayfs.sock\
/mnt/data/containerd-fuse-overlayfsfuse-overlayfs-snapshotter_git.bb
do_install:
echo "d/mnt/data/containerd-fuse-overlayfs0700 root root - -" \
>${D}${sysconfdir}/tmpfiles.d/containerd-fuse-overlayfs.conf
/mnt/dataisn't a path that will exist on a stock meta-virt image. Was that intentional for your project (data partition mount convention, etc.), or a holdover from a local test setup? FHS-normal for a daemon's persistent store would be/var/lib/containerd-fuse-overlayfs/ -- which also matches what the upstream project README suggests when running out-of-box.If
/mnt/datais specific to your deployment and you need it, the usual pattern in meta-virt is a recipe variable with a sane default:
CONTAINERD_FUSE_OVERLAYFS_ROOT?= "/var/lib/containerd-fuse-overlayfs"referenced from both the service file (via a substitution during
do_install) and the tmpfiles.d entry. Downstreams that need/mnt/dataoverride the variable in their local.conf without carrying a bbappend.
Quoted 6 lines
A v2 switching the default to
/var/lib/containerd-fuse-overlayfsand (optionally) parameterizing via the above variable would be the smallest change to get it into the tree. I'm happy to do the amend on apply if you'd prefer to not spin another patch -- let me know which you'd rather.
Thanks for the review. Sorry I forgot to drop the specific deployment folder.
I will submit a v2 with the requested changes.
Kind regards,
Thomas Perrot
Quoted 14 lines
Cheers,
Bruce
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#10136):
https://lists.yoctoproject.org/g/meta-virtualization/message/10136
Mute This Topic: https://lists.yoctoproject.org/mt/121589449/5443093
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/meta-virtualization/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com