Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423847 - sys-kernel/genkernel-3.4.36 fails to find compression method for initramfs
Summary: sys-kernel/genkernel-3.4.36 fails to find compression method for initramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
: 414561 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-27 16:06 UTC by Marcus Becker
Modified: 2012-07-21 00:10 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 Marcus Becker 2012-06-27 16:06:13 UTC
I experienced this using a fresh stage3 tarball and try to build a stock kernel image with initramfs using genkernel-3.4.36.
It fails with the error:
Compression '' is not available. Please install package ''
The default compression method is 'best' and it checks for any available in the kernel but there is a bug in the script (I think, really not sure here) to only find one if the command is in the shell history

Reproducible: Always

Steps to Reproduce:
1. genkernel all
2.
3.
Actual Results:  
Compression '' is not available. Please install package ''


This is since a couple of versions, where the '!' got added to evaluate the command path like this in gen_initramfs.sh
"${!cmd_variable_name}"

workaround: set no compression or gzip (works)

It starts working after a live ebuild is emerged, I assume that puts the compression commands into the history file. I just thought to let you know before those might become unmasked or stable
Comment 1 Sebastian Pipping gentoo-dev 2012-07-08 22:05:50 UTC
Confirmed and fixed on Git master.  Related commits:


Catch case with no initramfs compression supported by kernel (bug #423847)
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=15a33f3d28d9efa512b736853046224d7d2701d3

Use proper ${KERNEL_CONFIG} rather than ${KERNEL_DIR}/.config as input
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=88892f5df2453f959539c444a4d0ac161ec70d8f
Comment 2 Sebastian Pipping gentoo-dev 2012-07-08 22:13:06 UTC
+*genkernel-3.4.37 (08 Jul 2012)
+
+  08 Jul 2012; Sebastian Pipping <sping@gentoo.org> +genkernel-3.4.37.ebuild:
+  Bump to 3.4.37
+
Comment 3 Sebastian Pipping gentoo-dev 2012-07-21 00:10:23 UTC
*** Bug 414561 has been marked as a duplicate of this bug. ***