Commit 16c85c83 authored by Marcel's avatar Marcel
Browse files

Use zstd comression on FreeBSD 13

Showing with 8 additions and 1 deletion
+8 -1
......@@ -547,7 +547,14 @@ createuzip()
umount "${UZIP_MNT}" || umount -f "${UZIP_MNT}"
mdconfig -d -u ${mddev}
rmdir "${UZIP_MNT}"
mkuzip -Z -j 2 -d -s 19456 -o ${UZIP_IMAGE}.uzip ${UZIP_IMAGE}.img
mversion=$(freebsd-version -u | sed -E 's/^([0-9]+).*/\1/')
if [ "${mversion}" = "13" ]; then
mkuzip -Z -j $(sysctl -n hw.ncpu) -d -s 19456 -A zstd -C 19 \
-o ${UZIP_IMAGE}.uzip ${UZIP_IMAGE}.img
else
mkuzip -Z -j $(sysctl -n hw.ncpu) -d -s 19456 \
-o ${UZIP_IMAGE}.uzip ${UZIP_IMAGE}.img
fi
}
createpatch()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment