Skip to content

Commit d7caa8c

Browse files
committed
releng/docker/image-build.sh: use tmpfs for XBPS cache
1 parent 3f3e831 commit d7caa8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

releng/docker/image-build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ extra_pkgs=()
5454

5555
kern_series=()
5656

57-
host_mounts=()
57+
# By default, mount tmpfs on /var/cache/xbps
58+
host_mounts=( --mount "type=tmpfs,dst=/var/cache/xbps" )
59+
5860
host_repos=()
5961

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

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

0 commit comments

Comments
 (0)