[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LZ4 decompression on Boot



John,



I was not aware that Grub played a role in decompressing a kernal at boot as
that is a kernel function.

I am running Grub 2.02 if that matters.

What I should have mentioned in my first post is that "gzip" (of course) and
"xz" work flawlessly in decompressing at boot, if selected.


Regards,



Andre
 

En réponse à John-John Tedro <johnjohn.tedro@gmail.com> :
> ------------------ Début du message d'origine --------------------
> 
> On 29 Oct 2014 10:29, "Andre Massena"
> <andre_massena@lavache.com> 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.
> >
> 
> I believe this causes the initramfs image to be compressed
> differently.
> It would then seem that your boot loader is unable to
> decompress it.
> 
> >
> > 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
> >
> >
>
--------------------------------------------------------------------------------
> > www.lavache.com : l'email gratuit sans pub, vachement meuh.
> > www.hugolescargot.com : coloriage, fiches recettes et
> bricolage,
> chansons, etc.
> > www.jeux-gratuits.com : des jeux en ligne pour toute la
> famille.
> >
> >
> > --
> > To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> > Archive:
> [🔎] 1414574536.5450b1c823372@lavache.alinto.com">https://lists.debian.org/[🔎] 1414574536.5450b1c823372@lavache.alinto.com
> >
> 
> My guess is that your version/variant of grub (or lilo)
> doesn't understand
> lz4.
> 
> ------------------- Fin du message d'origine ---------------------




--------------------------------------------------------------------------------
www.lavache.com : l'email gratuit sans pub, vachement meuh.
www.hugolescargot.com : coloriage, fiches recettes et bricolage, chansons, etc.
www.jeux-gratuits.com : des jeux en ligne pour toute la famille.


Reply to: