diff options
-rwxr-xr-x | functions/defaults.sh | 2 | ||||
-rwxr-xr-x | scripts/build/lb_binary_netboot | 4 | ||||
-rwxr-xr-x | scripts/build/lb_binary_tar | 4 | ||||
-rwxr-xr-x | scripts/build/lb_binary_zsync | 4 | ||||
-rwxr-xr-x | scripts/build/lb_config | 2 | ||||
-rwxr-xr-x | scripts/build/lb_source_netboot | 4 | ||||
-rwxr-xr-x | scripts/build/lb_source_tar | 5 |
7 files changed, 24 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index 8c79fa485..33621da77 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -128,6 +128,8 @@ Set_defaults () LZMA_OPTIONS="${LZMA_OPTIONS:--6}" + XZ_OPTIONS="${XZ_OPTIONS:--6}" + # Setting apt recommends case "${LB_MODE}" in emdebian|progress) diff --git a/scripts/build/lb_binary_netboot b/scripts/build/lb_binary_netboot index 90669b0e6..b4957a3b5 100755 --- a/scripts/build/lb_binary_netboot +++ b/scripts/build/lb_binary_netboot @@ -157,6 +157,10 @@ case "${LB_COMPRESSION}" in lzip ${LZIP_OPTIONS} ../binary.netboot.tar ;; + xz) + xz ${XZ_OPTIONS} ../binary.netboot.tar + ;; + none) ;; esac diff --git a/scripts/build/lb_binary_tar b/scripts/build/lb_binary_tar index 4e6e614de..80630bdb0 100755 --- a/scripts/build/lb_binary_tar +++ b/scripts/build/lb_binary_tar @@ -61,6 +61,10 @@ case "${LB_COMPRESSION}" in lzip ${LZIP_OPTIONS} binary-tar.tar ;; + xz) + xz ${XZ_OPTIONS} binary-tar.tar + ;; + none) ;; esac diff --git a/scripts/build/lb_binary_zsync b/scripts/build/lb_binary_zsync index 21cc01784..5ec47e308 100755 --- a/scripts/build/lb_binary_zsync +++ b/scripts/build/lb_binary_zsync @@ -103,6 +103,10 @@ do lzip ${LZIP_OPTIONS} ${_IMAGE}.zsync ;; + xz) + xz ${XZ_OPTIONS} ${_IMAGE}.zsync + ;; + none) ;; esac diff --git a/scripts/build/lb_config b/scripts/build/lb_config index 97719a628..b185c03ef 100755 --- a/scripts/build/lb_config +++ b/scripts/build/lb_config @@ -54,7 +54,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--cache-packages true|false]\n\ \t [--cache-stages STAGE|\"STAGES\"]\n\ \t [--checksums md5|sha1|sha256|none]\n\ -\t [--compression bzip2|gzip|lzip|none]\n\ +\t [--compression bzip2|gzip|lzip|xz|none]\n\ \t [--zsync true|false]\n\ \t [--build-with-chroot true|false]\n\ \t [--chroot-filesystem ext2|ext3|ext4|squashfs|jffs2|none]\n\ diff --git a/scripts/build/lb_source_netboot b/scripts/build/lb_source_netboot index 4882866ca..e979bcda1 100755 --- a/scripts/build/lb_source_netboot +++ b/scripts/build/lb_source_netboot @@ -66,6 +66,10 @@ case "${_COMPRESSION}" in lzip ${LZIP_OPTIONS} source.netboot.tar ;; + xz) + xz ${XZ_OPTIONS} source.netboot.tar + ;; + none) ;; esac diff --git a/scripts/build/lb_source_tar b/scripts/build/lb_source_tar index 0f9396de2..63933f06f 100755 --- a/scripts/build/lb_source_tar +++ b/scripts/build/lb_source_tar @@ -72,6 +72,11 @@ case "${LB_COMPRESSION}" in lzip ${LZIP_OPTIONS} source.debian-live.tar ;; + xz) + xz ${XZ_OPTIONS} source.debian.tar + xz ${XZ_OPTIONS} source.debian-live.tar + ;; + none) ;; esac |