[arch-projects] [dbscripts] [PATCH 2/2] test: BUILDDIR must be owned by build user
Eli Schwartz
eschwartz at archlinux.org
Tue May 29 00:02:22 UTC 2018
pacman 5.1 enforces this restriction. OTOH it is a simpler setup to set
this as the user homedir directly in account creation (just like
makechrootpkg has always done) than to create an additional,
world-writable, directory.
Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
test/Dockerfile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/Dockerfile b/test/Dockerfile
index 3913f007..83c84499 100644
--- a/test/Dockerfile
+++ b/test/Dockerfile
@@ -2,8 +2,7 @@ FROM archlinux/base
RUN pacman -Syu --noconfirm --needed sudo fakeroot awk subversion make kcov bash-bats gettext grep
RUN pacman-key --init
RUN echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel
-RUN useradd -N -g users -G wheel -m tester
-RUN install -d -m 1777 /build
+RUN useradd -N -g users -G wheel -d /build -m tester
USER tester
RUN echo -e "\
Key-Type: RSA\n\
--
2.17.0
More information about the arch-projects
mailing list