mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
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:
parent
8e2ffcdd3b
commit
78cdb26a25
@ -36,7 +36,7 @@ BUSYBOX=y
|
||||
KEYMAP=n
|
||||
|
||||
#
|
||||
# COMPRESS: [ gzip | bzip2 | lzma | lzop ]
|
||||
# COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ]
|
||||
#
|
||||
|
||||
COMPRESS=gzip
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user