From 80023b30f15e5ece0db29f30449a3977098cc339 Mon Sep 17 00:00:00 2001 From: aseguro Date: Thu, 21 Feb 2019 04:12:54 +0000 Subject: [PATCH] adding multithread compression to reduce the build time especially in arm boxes --- create_pxeinitrd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create_pxeinitrd.sh b/create_pxeinitrd.sh index 022bdc7..6e90a8d 100755 --- a/create_pxeinitrd.sh +++ b/create_pxeinitrd.sh @@ -198,7 +198,8 @@ EOF chmod +x $INITRD_DIR/init -tar -cJf $INITRD_DIR/rootfs.tar.xz -C $MNT_DIR . +XZ_OPT=-T0 tar -cJf $INITRD_DIR/rootfs.tar.xz -C $MNT_DIR . + #[ -d /usr/lib/linux-image-* ] && cp -r $MNT_DIR/usr/lib/linux-image-* $RESULT_DIR/dtbs rm $MNT_DIR/boot/initrd.img-*