From 7f4f54bc7f4f704b0d33935ebd4d9e4ebcc085ef Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 7 Feb 2014 12:22:48 -0800 Subject: [PATCH] gentoo-portage/Dockerfile.template: chown portage:portage /usr/portage When the usersync feature is enabled (which it is by default), emerge-webrsync uses the owner and group of /usr/portage (${repo_location}) for the unpacked tree. This commit avoids having the whole tree be owned by root:root. --- gentoo-portage/Dockerfile.template | 1 + 1 file changed, 1 insertion(+) diff --git a/gentoo-portage/Dockerfile.template b/gentoo-portage/Dockerfile.template index 4bae466..ebe0c50 100644 --- a/gentoo-portage/Dockerfile.template +++ b/gentoo-portage/Dockerfile.template @@ -28,6 +28,7 @@ RUN sed -i 's/#rc_sys=""/rc_sys="lxc"/g' /etc/rc.conf RUN echo 'GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/"' >> /etc/portage/make.conf #RUN echo 'SYNC="rsync://rsync.us.gentoo.org"' >> /etc/portage/make.conf RUN mkdir -p /usr/portage +RUN chown -R portage:portage /usr/portage RUN emerge-webrsync RUN emerge --sync --quiet RUN eselect news read new -- 2.26.2