diff --git a/template/templates/modules/modules.j2 b/template/templates/modules/modules.j2 index a9eac95..45dbbea 100644 --- a/template/templates/modules/modules.j2 +++ b/template/templates/modules/modules.j2 @@ -1,11 +1,13 @@ # Key RUN RUN --mount=type=bind,from=stage-keys,src=/keys,dst=/tmp/keys \ - cp /tmp/keys/* /usr/etc/pki/containers/ \ + mkdir -p /usr/etc/pki/containers/ \ + && cp /tmp/keys/* /usr/etc/pki/containers/ \ && ostree container commit # Bin RUN RUN --mount=type=bind,from=stage-bins,src=/bins,dst=/tmp/bins \ - cp /tmp/bins/* /usr/bin/ \ + mkdir -p /usr/bin/ \ + && cp /tmp/bins/* /usr/bin/ \ && ostree container commit # Module RUNs