build.sh: multithread compression
authorKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:54:33 +0000 (11:54 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 09:54:33 +0000 (11:54 +0200)
Use xz's multithreaded compression for a significant speedup in build
time.

image/build.sh

index 66234c1..db9c2ee 100755 (executable)
@@ -17,7 +17,9 @@ poudriere image \
        -s 3g -t usb
 
 # Put the domotica image in the installer overlay
-xz -v -z -c /usr/local/poudriere/data/images/domotica.img > overlay/installer/domotica.img.xz
+xz -v -z -c \
+       -T 0 \
+       /usr/local/poudriere/data/images/domotica.img > overlay/installer/domotica.img.xz
 
 poudriere image \
        -j $JAIL -p $PORTS -f $PACKAGES \