Adding xz as valid compression format.

This commit is contained in:
Daniel Baumann 2012-07-18 19:44:00 +02:00
parent 75ca21eaec
commit f4de284deb
7 changed files with 24 additions and 1 deletions

View File

@ -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)

View File

@ -157,6 +157,10 @@ case "${LB_COMPRESSION}" in
lzip ${LZIP_OPTIONS} ../binary.netboot.tar
;;
xz)
xz ${XZ_OPTIONS} ../binary.netboot.tar
;;
none)
;;
esac

View File

@ -61,6 +61,10 @@ case "${LB_COMPRESSION}" in
lzip ${LZIP_OPTIONS} binary-tar.tar
;;
xz)
xz ${XZ_OPTIONS} binary-tar.tar
;;
none)
;;
esac

View File

@ -103,6 +103,10 @@ do
lzip ${LZIP_OPTIONS} ${_IMAGE}.zsync
;;
xz)
xz ${XZ_OPTIONS} ${_IMAGE}.zsync
;;
none)
;;
esac

View File

@ -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\

View File

@ -66,6 +66,10 @@ case "${_COMPRESSION}" in
lzip ${LZIP_OPTIONS} source.netboot.tar
;;
xz)
xz ${XZ_OPTIONS} source.netboot.tar
;;
none)
;;
esac

View File

@ -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