Skip to content

Commit a3d5d30

Browse files
committed
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 4117515 commit a3d5d30

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
@@ -47,7 +47,6 @@ for maybe_symlink in "${workdir}"/{src/config,src/yumrepos}; do
4747
fi
4848
done
4949

50-
mkdir -p "${workdir}"/cache
5150
cachedev=$(blkid -lt LABEL=cosa-cache -o device || true)
5251
if [ -n "${cachedev}" ]; then
5352
mount "${cachedev}" "${workdir}"/cache

0 commit comments

Comments
 (0)