[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible arch: allow to run pacman as root inside the schroot

Holger Levsen holger at moszumanska.debian.org
Sat Oct 17 02:49:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 69fa768c6232eb6c681445e1ad986afe8bc22695
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Oct 17 04:49:00 2015 +0200

    reproducible arch: allow to run pacman as root inside the schroot
---
 bin/reproducible_arch_schroot_setup.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index cd563f7..71287f0 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() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list