From e98d8813cf8909777303cad83c1382c744924bd3 Mon Sep 17 00:00:00 2001 From: Audiobuzz Date: Sat, 13 Jun 2026 08:30:59 +0000 Subject: [PATCH] Adding vfs to buildah script --- scripts/build-oci.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build-oci.sh b/scripts/build-oci.sh index 2b03442..c9bce60 100755 --- a/scripts/build-oci.sh +++ b/scripts/build-oci.sh @@ -91,6 +91,14 @@ LABELS=( ) if command -v buildah >/dev/null; then + # Default buildah to the vfs storage driver. Inside a container (e.g. a CI + # runner) the host fs is overlayfs, and buildah's default 'overlay' driver + # can't stack overlay-on-overlay without fuse-overlayfs ("backing file + # system is unsupported"). vfs needs no overlay and is fine for this tiny + # FROM-scratch image. Override by exporting STORAGE_DRIVER on a build host + # with native overlay support. + export STORAGE_DRIVER="${STORAGE_DRIVER:-vfs}" + ctr=$(buildah from scratch) buildah copy "$ctr" "$STAGE/artifacts" /artifacts for l in "${LABELS[@]}"; do buildah config --label "$l" "$ctr"; done