summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-17 04:49:00 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-17 04:49:00 +0200
commit69fa768c6232eb6c681445e1ad986afe8bc22695 (patch)
tree8c29e31bb6b843510aeafa0a6361eb8ad5fe0e2a /bin
parentd9648acbb6b9535a547c5100cf007303d620d6da (diff)
downloadjenkins.debian.net-69fa768c6232eb6c681445e1ad986afe8bc22695.tar.xz
reproducible arch: allow to run pacman as root inside the schroot
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_arch_schroot_setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index cd563f73..71287f05 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -41,6 +41,8 @@ bootstrap() {
chmod 555 $SCHROOT_BASE/$TARGET/proc $SCHROOT_BASE/$TARGET/sys
# mktemp creates directories with 700 perms
chmod 755 $SCHROOT_BASE/$TARGET
+ # configure sudo
+ echo 'jenkins ALL= NOPASSWD: /usr/sbin/pacman *' | tee -a $SCHROOT_BASE/$TARGET/etc/sudoers
}
cleanup() {