Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619640 - sys-kernel/genkernel - LZ4 wrong options @ gen_initramfs.sh
Summary: sys-kernel/genkernel - LZ4 wrong options @ gen_initramfs.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 06:26 UTC by ciaran
Modified: 2017-07-14 19:59 UTC (History)
2 users (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 ciaran 2017-05-25 06:26:55 UTC
concerning LZ4 compression of INITRAMFS

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

from master branch

in file: gen_initramfs.sh

line #1117

change to --> lz4) compress_ext='.lz4' compress_cmd="${cmd_lz4} -z -9 -l -q" ;;

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Add legacy and quiet flags to lz4 command, this will keep lz4 compression output similar to the kind of output you see in other commands, like xz. Legacy flag, at least in my case, my computer will exhibit a kernel panic/missing modules if I don't use legacy mode on lz4, perhaps there is a setting in the kernel to move beyond legacy lz4? The man page  says legacy is for kernel stuff. 

current status :: broken, in my case.

FYI, the MASTER branch version of this file is also broken when it comes to my kernel being able to appropriate the right modules from the initramfs, might file another bug for that, vimdiffing it right now.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-07-14 18:52:03 UTC
[master ce64e5d] Fix LZ4 compression options.
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-07-14 19:59:35 UTC
Released in 3.5.1.1, please test