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