[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Arch Linux: untar with sudo

Holger Levsen gitlab at salsa.debian.org
Sat Jan 12 20:22:10 GMT 2019


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
7d26da99 by Holger Levsen at 2019-01-12T20:21:54Z
reproducible Arch Linux: untar with sudo

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- bin/reproducible_setup_archlinux_schroot.sh
- hosts/common/etc/sudoers.d/jenkins


Changes:

=====================================
bin/reproducible_setup_archlinux_schroot.sh
=====================================
@@ -43,7 +43,7 @@ bootstrap() {
 
 		curl -fO "$BOOTSTRAP_BASE/$BOOTSTRAP_TAR_GZ"
 		sudo rm -rf --one-file-system "$SCHROOT_BASE/root.x86_64/"
-		tar xzf archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz -C $SCHROOT_BASE
+		sudo tar xzf archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz -C $SCHROOT_BASE
 
 		mv "$SCHROOT_BASE/$TARGET" "$SCHROOT_BASE/$TARGET.old"
 		mv $SCHROOT_BASE/root.x86_64 $SCHROOT_BASE/$TARGET


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -7,6 +7,7 @@ jenkins ALL=  \
 	/bin/chmod +x /schroots/*, \
 	/bin/chmod +x /chroots/*, \
 	/bin/tar -c --exclude ./sys/\* --exclude ./proc/\* -f /schroots/*, \
+        /bin/tar xzf archlinux-bootstrap-*tar.gz -C /schroots/, \
 	/usr/sbin/chroot /schroots/*, \
 	/usr/sbin/chroot /chroots/*, \
 	/usr/sbin/chroot /media/*, \



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/7d26da99f76fc0b897603d385796cea39067d751

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/7d26da99f76fc0b897603d385796cea39067d751
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190112/9da0b771/attachment.html>


More information about the Qa-jenkins-scm mailing list