@@ -149,6 +149,8 @@ RUN bootc completion bash > /etc/bash_completion.d/bootc
149149# defensively. Any bound image that fails to bake fails the build LOUD --
150150# better than shipping an image whose every deployment artifact 404s.
151151RUN --network=host set -eux; \
152+ mkdir -p /tmp/inner-podman; \
153+ echo -e '[storage]\n driver = "overlay"\n [storage.options.overlay]\n mountopt = "nodev"' > /tmp/inner-podman/storage.conf; \
152154 install -d -m 0755 /usr/lib/containers/storage; \
153155 baked=0; failed=0; \
154156 for q in /usr/lib/bootc/bound-images.d/*.container; do \
@@ -181,7 +183,7 @@ RUN --network=host set -eux; \
181183 echo "bound-image: baking $img" ; \
182184 _pulled=0; \
183185 for _try in 1 2 3; do \
184- if podman --root /usr/lib/containers/storage pull "$img" ; then _pulled=1; break; fi; \
186+ if CONTAINERS_STORAGE_CONF=/tmp/inner-podman/storage.conf podman --root /usr/lib/containers/storage pull "$img" ; then _pulled=1; break; fi; \
185187 echo " bound-image pull attempt $_try/3 failed for $img -- retrying in 3s" ; sleep 3; \
186188 done; \
187189 if [ "$_pulled" = 1 ]; then \
@@ -210,7 +212,8 @@ RUN --network=host set -eux; \
210212 # (preset-enabled, commit f5a1ac9) which runs chmod -R go+rX on the running \
211213 # host where layer sizes and build-time commit limits do not matter. \
212214 echo "bound-images: chmod 0755 the main storage directory" ; \
213- chmod 0755 /usr/lib/containers/storage
215+ chmod 0755 /usr/lib/containers/storage; \
216+ rm -rf /tmp/inner-podman
214217
215218RUN ostree container commit
216219# bootc container lint MUST be the final instruction (ARCHITECTURAL LAW 4).
0 commit comments