Skip to content

Commit eb95a3d

Browse files
jlebonopenshift-cherrypick-robot
authored andcommitted
supermin-init-prelude: skip creating cache dir
In a cosa workdir, that dir always exists in both privileged and unprivileged paths. Prep for a new command that'll use this code outside a cosa workdir where to be nice we don't want to just randomly create a cache dir even when no caching is required.
1 parent 0bf6ea5 commit eb95a3d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/supermin-init-prelude.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ for maybe_symlink in "${workdir}"/{src/config,src/yumrepos,builds}; do
5050
fi
5151
done
5252

53-
mkdir -p "${workdir}"/cache
5453
cachedev=$(blkid -lt LABEL=cosa-cache -o device || true)
5554
if [ -n "${cachedev}" ]; then
5655
mount "${cachedev}" "${workdir}"/cache

0 commit comments

Comments
 (0)