]> git.ipfire.org Git - thirdparty/lxc.git/commit
oci: resolve cross-filesystem blob caching failure 4395/head
authorTanmay Naik <tnaik96@gmail.com>
Sat, 3 Feb 2024 00:28:43 +0000 (00:28 +0000)
committerTanmay Naik <tnaik96@gmail.com>
Sat, 3 Feb 2024 08:22:52 +0000 (08:22 +0000)
commitdf0665b6def8ca0758980042e06f7d59b821938a
tree0f4c4bf79a12c3fa1c0e680a8a0a5372e10fd3de
parent3efa1c3037bff09d12e36727cd6fea2f97fc0a7c
oci: resolve cross-filesystem blob caching failure

This commit addresses an issue in the OCI template where lxc-create
fails if OCI-cache directory for blob caching is not on the same mount
as the destination OCI directory. lxc-create bails when skopeo tries to
create a hard-link across the two and fails.

For example, if /var/lib/lxc is a bind mountpoint of a random directory
and skopeo fails to hard-link across /var/cache/lxc and /var/lib/lxc

This commit introduces a check where if both directories are on not the
same mount points, it disables blob caching in skopeo and continues.

Signed-off-by: Tanmay Naik <tnaik96@gmail.com>
templates/lxc-oci.in