bug-grub
[Top][All Lists]
Advanced

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

Gunzip problem


From: Thierry Laronde
Subject: Gunzip problem
Date: Fri, 29 Jun 2001 11:08:57 +0200
User-agent: Mutt/1.2.5i

Hello,

In order to avoid the decompression of the initrd, there are several
alternatives. But I need your advice in order to know which is best.

Brutal force : create another global variable, say : RAW, and add a test to
RAW in grub_read "if (compressed && !RAW)", RAW being set in load_initrd.
Fast and definitively ugly : this does not answer the question about whether
or not the decompression has to be handled automatically by grub_read ; this
is not generic, this is initrd ad hoc.

Modify grub_read :
a) Add another parameter, raw, to know if the data must be taken as is, or
if decompression has to be done. More generic, less ugly, but need to modify
every call to grub_read. The decision to uncompress or not could be taken
via an new option to initrd, the default being not to.

b) Remove the decompression in grub_read : the question is : why do we need
that? If not now, could we imagine that will have to use some grub data
compressed in the future, GRUB using for its own purpose a kind of cramfs,
that is decompressing modules it has to use for such and such
functionnality, etc...

Suggestions ?
-- 
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]