mkinitramfs: add LZO support

Albin Tonnerre sent a patch fixing the initramfs LZO decompression,
so heres my fix for initramfs-tools to have compete compression
support. Tell me if you want me to open a new bugreport.

On a side note:	this will only work with a patched kernel (might be
upstream with 2.6.34), its a good idea to include a warning for those
running 2.6.33 from experimental

[ adding it on TODO of Lenny linux-2.6 2.6.32 ]

Signed-off-by: maximilian attems <maks@debian.org>
This commit is contained in:
bert schulze 2010-04-09 12:50:31 +02:00 committed by maximilian attems
parent 29166fa1d5
commit 6e9a3ba17b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -139,7 +139,7 @@ if ! command -v ${compress} >/dev/null 2>&1; then
echo "No ${COMPRESS} in ${PATH}, using gzip"
fi
if ! `grep -q -i config_rd_${COMPRESS}=y /boot/config-${version}` ; then
if ! `grep -q -i ^config_rd_${COMPRESS%p} /boot/config-${version}` ; then
compress=gzip
[ "${verbose}" = y ] && \
echo "linux-2.6 misses ${COMPRESS} support, using gzip"