Skip to content

Commit

Permalink
Adding fix for imageCopyTmpDir
Browse files Browse the repository at this point in the history
Adding TMPDIR under [engine]

Signed-off-by: Yariv Rachmani <[email protected]>
  • Loading branch information
Yarboa committed Dec 28, 2023
1 parent c279af5 commit cfd0955
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,15 @@ storage() {
-e 's|^#.*transient_store.*|transient_store=true|g' \
/"${ROOTFS}/usr/share/containers/storage.conf" \
> "${ROOTFS}/etc/containers/storage.conf"
fi

if ! grep -q "env" "${ROOTFS}/etc/containers/containers.conf"; then
echo "env = [\"TMPDIR=/var/${TMP_QM_IMG_DIR}\"]" \
>> "${ROOTFS}/etc/containers/containers.conf"
fi
#File always copied from /usr/share/qm, check if exist and append
if test -f "${ROOTFS}/etc/containers/containers.conf"; then
cat >> "${ROOTFS}/etc/containers/containers.conf" <<EOF
[engine]
env = ["TMPDIR=/var/${TMP_QM_IMG_DIR}"]
EOF
fi
}

Expand Down

0 comments on commit cfd0955

Please sign in to comment.