diff options
author | kpcyrd <git@rxv.cc> | 2017-11-02 16:59:59 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@debian.org> | 2017-11-02 17:05:12 +0100 |
commit | 4534b4ad55dce23dc3bbc55b7ce168657efdb901 (patch) | |
tree | a80d67c061f147ba9a882fc335fe24e019962695 | |
parent | 221c1da2dce88b20b600bacb1c3875855c318f34 (diff) | |
download | jenkins.debian.net-4534b4ad55dce23dc3bbc55b7ce168657efdb901.tar.xz |
reproducible-archlinux: use sudo to prepare chroot
-rwxr-xr-x | bin/reproducible_setup_archlinux_schroot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_setup_archlinux_schroot.sh b/bin/reproducible_setup_archlinux_schroot.sh index 194efda4..68a7872b 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 |