From 401a58a874cae6be54557bdae8417497ba418037 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 30 Mar 2023 10:58:49 -0500 Subject: [PATCH] ocivm: Unify Portage cache directories It turns out that QEMU microvms have a very limited number of I/O ports available for e.g. attached disks and shared filesystems. To conserve ports, we'll use a single volume for both distfiles and binpkgs cache directories. --- ocivm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ocivm.sh b/ocivm.sh index ee1fd94..4dd7fd7 100755 --- a/ocivm.sh +++ b/ocivm.sh @@ -15,8 +15,7 @@ ocivm \ -n ${name} \ -w /tmp/src \ -v "${PWD}":/tmp/src \ - -v distfiles:/var/cache/distfiles:size=4G \ - -v packages:/var/cache/binpkgs \ + -v portagecache:/var/cache:size=16G \ -v portage:/var/db/repos/gentoo:size=4G \ --tmpfs /usr/aarch64-unknown-linux-gnu/tmp \ --tmpfs /var/tmp \