Adding vfs to buildah script

This commit is contained in:
Audiobuzz
2026-06-13 08:30:59 +00:00
parent b948557cd7
commit e98d8813cf
+8
View File
@@ -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