Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424527 - sys-boot/grub-2.00: grub2-{mkimage,mkstandalone}: --compression has no effect
Summary: sys-boot/grub-2.00: grub2-{mkimage,mkstandalone}: --compression has no effect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-02 16:40 UTC by Maxim Kammerer
Modified: 2013-01-07 03:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-07-02 16:40:56 UTC
For grub2-mkimage (both memdisk and regular invocation), and for grub2-mkstandalone wrapper, --compression apparently has no effect (files are never compressed):

# grub2-mkstandalone -O x86_64-efi -C xz -o BOOTx64.EFI
# ls -l BOOTx64.EFI 
-rw-r--r-- 1 root root 2338816 Jul  2 16:39 BOOTx64.EFI

# grub2-mkstandalone -O x86_64-efi -C none -o BOOTx64.EFI
# ls -l BOOTx64.EFI 
-rw-r--r-- 1 root root 2338816 Jul  2 16:39 BOOTx64.EFI
Comment 1 Mike Gilbert gentoo-dev 2012-07-02 18:19:28 UTC
I'm not sure how the compression flag is actually supposed to work. I suggest asking in upstream support channels. If you need a patch backported, feel free to reopen.
Comment 2 Maxim Kammerer 2012-07-02 20:46:33 UTC
It seems that compression is only supported for select architectures, with *-efi not among those supported -- see PLATFORM_FLAGS_DECOMPRESSORS in util/grub-mkimage.c.
Comment 3 Maxim Kammerer 2012-07-03 09:25:43 UTC
Feature request submitted: https://savannah.gnu.org/bugs/index.php?36770.
Comment 4 Maxim Kammerer 2012-07-08 15:15:49 UTC
> If you need a patch backported, feel free to reopen.

Hi, there is a patch that fixes transparent decompression of individual modules:

https://savannah.gnu.org/bugs/index.php?36770
https://savannah.gnu.org/support/download.php?file_id=26165

Is it possible to backport it?
Comment 5 Mike Gilbert gentoo-dev 2012-07-08 17:52:41 UTC
(In reply to comment #4)

That patch has not yet been committed upstream.

Please work with upstream to test it and get it merged, then I can try to backport it.
Comment 6 Maxim Kammerer 2013-01-01 22:36:24 UTC
(In reply to comment #5)
> That patch has not yet been committed upstream.
> 
> Please work with upstream to test it and get it merged, then I can try to
> backport it.

The patch has been committed:
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/4555?remember=4555&compare_revid=4553
Comment 7 Mike Gilbert gentoo-dev 2013-01-07 03:40:40 UTC
Fixed in the tree.

+  07 Jan 2013; Mike Gilbert <floppym@gentoo.org>
+  +files/grub-2.00-compression.patch, grub-2.00-r1.ebuild:
+  Include patch to fix module decompression, #424527 by Maxim Kammerer.