Skip to content

Commit

Permalink
supermin-init-prelude: skip creating cache dir
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlebon committed Mar 4, 2024
1 parent 4117515 commit a3d5d30
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/supermin-init-prelude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ for maybe_symlink in "${workdir}"/{src/config,src/yumrepos}; do
fi
done

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

0 comments on commit a3d5d30

Please sign in to comment.