Skip to content

Commit 4184e1a

Browse files
committed
cmdlib.sh: ensure tmprepo is initialized
In the buildah path, we may not have initialized the tmprepo yet. This is usually done by `prepare_build` in the legacy path, but we're purposely avoiding that in the buildah path.
1 parent 3351049 commit 4184e1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd-build-with-buildah

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ build_with_buildah() {
123123
lockfile="manifest-lock.${arch}.json"
124124
if [ ! -f "src/config/${lockfile}" ] && { [ -n "${VERSION}" ] || [ -n "${AUTOLOCK_VERSION}" ]; }; then
125125
autolockfile=$(tmprepo=tmp/repo; workdir=.;
126+
ostree init --repo="${tmprepo}" --mode=archive;
126127
generate_autolock "${AUTOLOCK_VERSION:-${VERSION}}")
127128
if [ -n "${autolockfile}" ]; then
128129
echo "Injecting autolock-generated ${lockfile}..."

0 commit comments

Comments
 (0)