On 2014-10-29 10:22, Andre Massena wrote:
> Hello all,
>
>
> having trawled through several search engines and perused various Debian
> lists, I am still in the dark...
>
> I am running Debian Jessie (Kernel 3.17.1) on a Thinkpad X230. I would like
> to use LZ4 to compress/decompress the kernel on booting.
> As per apt-get, the release of liblz4-1 I am running is r122-2.
>
> I have the following kernel settings -
>
> CONFIG_HAVE_KERNEL_LZ4=y
> CONFIG_KERNEL_LZ4=y
> CONFIG_KERNEL_LZ4=y
> CONFIG_ZRAM_LZ4_COMPRESS=y
> CONFIG_CRYPTO_LZ4=y
> CONFIG_CRYPTO_LZ4HC=y
> CONFIG_LZ4_COMPRESS=y
> CONFIG_LZ4HC_COMPRESS=y
> CONFIG_LZ4_DECOMPRESS=y
> CONFIG_DECOMPRESS_LZ4=y
>
> in /etc/initramfs-tools/conf.d I have a file called "lz4" which contains the
> line 
> COMPRESS=lz4c.
> I subsequently run update-initramfs with the appropriate switches and reboot.
>
>
> Result is a "initramfs unpacking failed: junk in compiled archive" message
> at boot.
>
>
> Does anyone have an idea what I might have done wrong/incorrect or indeed
> any pointers?
>
>
>
> Regards,
>
>
>
> Andre
>
Hi Andre,

looks like the kernel is using an older, less standardized format for
its lz4 compression. Use the -l switch on lz4c for  linux kernel support.

See the lz4 man page and
https://code.google.com/p/lz4/issues/detail?id=66#c2

Regards
Vanessa


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54512bf3.20...@ulukai.org

Reply via email to