Skip to content

Commit

Permalink
releng/docker/image-build.sh: use tmpfs for XBPS cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Sep 19, 2023
1 parent 3f3e831 commit d7caa8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions releng/docker/image-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ extra_pkgs=()

kern_series=()

host_mounts=()
# By default, mount tmpfs on /var/cache/xbps
host_mounts=( --mount "type=tmpfs,dst=/var/cache/xbps" )

host_repos=()

web_repos=()
Expand Down Expand Up @@ -188,7 +190,6 @@ buildah run "${host_mounts[@]}" "${container}" \
buildah run "${container}" sh -c 'echo "ignorepkg=dkms" > /etc/xbps.d/10-nodkms.conf'
buildah run "${container}" xbps-pkgdb -m manual binutils
buildah run "${container}" xbps-remove -Roy dkms "${kern_headers[@]}"
buildah run "${container}" sh -c 'rm -f /var/cache/xbps/*'

# Record a commit hash if one is available
if [ -n "${zbm_commit_hash}" ]; then
Expand Down

0 comments on commit d7caa8c

Please sign in to comment.