mkinitramfs: Add support for xz compression.

Also add info to relevant config file.

Reference: <20110216144546.GA20971@dali>
Reported-by: trentbuck@gmail.com
Signed-off-by: maximilian attems <max@stro.at>
Reviewed-by: Michael Prokop <mika@debian.org>
This commit is contained in:
maximilian attems 2011-02-20 20:33:05 +01:00
parent 8e2ffcdd3b
commit 78cdb26a25
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ BUSYBOX=y
KEYMAP=n
#
# COMPRESS: [ gzip | bzip2 | lzma | lzop ]
# COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ]
#
COMPRESS=gzip

View File

@ -142,6 +142,7 @@ if ! `grep -q -i ^config_rd_${COMPRESS%p} /boot/config-${version}` ; then
fi
[ "${compress}" = lzop ] && compress="lzop -9"
[ "${compress}" = xz ] && compress="xz -9"
if [ -d "${outfile}" ]; then
echo "${outfile} is a directory" >&2