Commit 7d26da99 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Arch Linux: untar with sudo

parent d0fd4d07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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/*, \