prepare: Fix ownership of Portage DISTDIR

If the Portage DISTDIR is a mounted filesystem, it may not have the
correct permissions initially.
This commit is contained in:
2023-03-03 12:29:45 -06:00
parent 5e4e37259e
commit 52aae70db2

View File

@@ -10,6 +10,8 @@ if [ ! -f /var/db/repos/gentoo/metadata/timestamp ]; then
emerge-webrsync
fi
chown portage: "$(portageq envvar DISTDIR)"
ARCH=$(PORTAGE_CONFIGROOT=/usr/${target} portageq envvar ARCH)