[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: allow to run mmdebstrap with sudo everywhere it's allowed for debootstrap

Holger Levsen gitlab at salsa.debian.org
Tue Jan 14 17:05:23 GMT 2020



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


Commits:
464508f1 by Holger Levsen at 2020-01-14T18:04:01+01:00
allow to run mmdebstrap with sudo everywhere it's allowed for debootstrap

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

- - - - -
cab70212 by Holger Levsen at 2020-01-14T18:04:21+01:00
chroot-installs: use mmdebstrap instead of debootstrap

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

- - - - -


6 changed files:

- bin/chroot-installation.sh
- hosts/common/etc/sudoers.d/jenkins
- hosts/jenkins-test-vm/etc/sudoers.d/jenkins
- hosts/jenkins/etc/sudoers.d/jenkins
- hosts/profitbricks-build10-amd64/etc/sudoers.d/jenkins
- hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins


Changes:

=====================================
bin/chroot-installation.sh
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2012-2019 Holger Levsen <holger at layer-acht.org>
+# Copyright 2012-2020 Holger Levsen <holger at layer-acht.org>
 #           2018      Mattia Rizzolo <mattia at debian.org>
 # released under the GPLv2
 
@@ -167,7 +167,7 @@ bootstrap() {
 
 	echo "Bootstraping $1 into $CHROOT_TARGET now."
 	set -x
-	sudo debootstrap $1 $CHROOT_TARGET $MIRROR
+	sudo mmdebstrap $1 $CHROOT_TARGET $MIRROR
 	set +x
 	prepare_bootstrap $1
 	execute_ctmpfile


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -1,5 +1,6 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
+	/usr/bin/mmdebstrap *, \
 	/bin/systemctl reset-failed, \
 	/usr/bin/tee /schroots/*, \
 	/usr/bin/tee -a /schroots/*, \


=====================================
hosts/jenkins-test-vm/etc/sudoers.d/jenkins
=====================================
@@ -1,5 +1,6 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
+	/usr/bin/mmdebstrap *, \
 	/bin/systemctl reset-failed, \
 	/usr/bin/tee /schroots/*, \
 	/usr/bin/tee -a /schroots/*, \


=====================================
hosts/jenkins/etc/sudoers.d/jenkins
=====================================
@@ -1,5 +1,6 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
+	/usr/bin/mmdebstrap *, \
 	/bin/systemctl reset-failed, \
 	/usr/bin/tee /schroots/*, \
 	/usr/bin/tee -a /schroots/*, \


=====================================
hosts/profitbricks-build10-amd64/etc/sudoers.d/jenkins
=====================================
@@ -1,5 +1,6 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
+	/usr/bin/mmdebstrap *, \
 	/bin/systemctl reset-failed, \
 	/usr/bin/tee /schroots/*, \
 	/usr/bin/tee -a /schroots/*, \


=====================================
hosts/profitbricks-build9-amd64/etc/sudoers.d/jenkins
=====================================
@@ -1,5 +1,6 @@
 jenkins ALL=  \
 	NOPASSWD: /usr/sbin/debootstrap *, \
+	/usr/bin/mmdebstrap *, \
 	/bin/systemctl reset-failed, \
 	/usr/sbin/chroot /chroots/*, \
 	/bin/rm -rf --one-file-system /chroots/*, \



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/1027503bf4f764b12132bb4c5ebb468a6133e203...cab70212a67f04abd5b22887626c432f4916e2ab

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/compare/1027503bf4f764b12132bb4c5ebb468a6133e203...cab70212a67f04abd5b22887626c432f4916e2ab
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/20200114/6b64b754/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list