pigz is using all available CPU cores to compress to GZIP

This commit is contained in:
Igor Pečovnik
2015-12-09 07:59:34 +01:00
parent a04e6b8782
commit 96dc4fd885
2 changed files with 3 additions and 4 deletions

View File

@@ -190,9 +190,8 @@ KILLPROC=$(ps -uax | pgrep ntpd | tail -1); if [ -n "$KILLPROC" ]; then k
KILLPROC=$(ps -uax | pgrep dbus-daemon | tail -1); if [ -n "$KILLPROC" ]; then kill -9 $KILLPROC; fi
display_alert "Closing deboostrap process and preparing cache." "" "info"
tar czpf $DEST/cache/rootfs/$RELEASE.tgz --directory=$DEST/cache/sdcard/ \
--exclude=dev/* --exclude=proc/* --exclude=run/* --exclude=tmp/* --exclude=mnt/* .
tar cpf - --directory=$DEST/cache/sdcard/ --exclude=dev --exclude=proc --exclude=run --exclude=tmp --exclude=mnt --exclude=sys . \
| pigz > $DEST/cache/rootfs/$RELEASE.tgz
fi
#
# mount proc, sys and dev

View File

@@ -238,7 +238,7 @@
fi
# download packages for host
PAK="aptly device-tree-compiler pv bc lzop zip binfmt-support bison build-essential ccache debootstrap flex ntpdate "
PAK="aptly device-tree-compiler pv bc lzop zip binfmt-support bison build-essential ccache debootstrap flex ntpdate pigz "
PAK=$PAK"gawk gcc-arm-linux-gnueabihf lvm2 qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev "
PAK=$PAK"parted pkg-config expect gcc-arm-linux-gnueabi libncurses5-dev whiptail debian-keyring debian-archive-keyring"