[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible-archlinux: use sudo to prepare chroot

Mattia Rizzolo mattia at debian.org
Thu Nov 2 16:05:27 UTC 2017


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

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

commit 4534b4ad55dce23dc3bbc55b7ce168657efdb901
Author: kpcyrd <git at rxv.cc>
Date:   Thu Nov 2 16:59:59 2017 +0100

    reproducible-archlinux: use sudo to prepare chroot
---
 bin/reproducible_setup_archlinux_schroot.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh
index 194efda..68a7872 100755
--- a/bin/reproducible_setup_archlinux_schroot.sh
+++ b/bin/reproducible_setup_archlinux_schroot.sh
@@ -36,12 +36,12 @@ bootstrap() {
         echo "$(date -u) - downloading Arch Linux bootstrap.tar.gz."
 
         curl -fO "$BOOTSTRAP_BASE/$BOOTSTRAP_TAR_GZ"
-        rm -rf --one-file-system "$SCHROOT_BASE/root.x86_64/"
+        sudo rm -rf --one-file-system "$SCHROOT_BASE/root.x86_64/"
         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
-        rm -rf --one-file-system "$SCHROOT_BASE/$TARGET.old"
+        sudo rm -rf --one-file-system "$SCHROOT_BASE/$TARGET.old"
 
         rm archlinux-bootstrap-$BOOTSTRAP_DATE-x86_64.tar.gz
     fi

-- 
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