Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744691 - sys-kernel/genkernel-4.1.2-r3: Required kernel option 'CONFIG_RD_ZSTD' is missing" with --compress-initramfs --compress-initramfs-type=zstd under sys-kernel/gentoo-sources-5.8.11
Summary: sys-kernel/genkernel-4.1.2-r3: Required kernel option 'CONFIG_RD_ZSTD' is mis...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 16:29 UTC by Thibaud CANALE
Modified: 2020-09-25 17:07 UTC (History)
0 users

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


Attachments
genkernel.log (gzip) (genkernel.log.gz,3.20 KB, application/gzip)
2020-09-25 16:29 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2020-09-25 16:29:46 UTC
Created attachment 662446 [details]
genkernel.log (gzip)

Hello,

Genkernel fails with the following message:
> * ERROR: Something went wrong: Required kernel option 'CONFIG_RD_ZSTD' which genkernel tried to set is missing!

There is not such option when searching with "make menuconfig", at least for kernel version 5.8.11.

It happens when I provided the parameters "--compress-initramfs --compress-initramfs-type=zstd".

Please see attachment (gzip-ed).
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-09-25 16:41:01 UTC
Not a bug. Features like -compress-initramfs-type=zstd will of course depend on support in used kernel sources. If your used kernel sources don't provide ZSTD support yet, you cannot use it and that's why this check is present.

ZSTD requires linux-5.9 or patched linux-sources. Gentoo-sources were carrying this patch but dropped it in recent version (https://gitweb.gentoo.org/proj/linux-patches.git/commit/?h=5.8&id=b7b7344597998be6b6b69f5d9fd42a0b1f1dbf01)
Comment 2 Thibaud CANALE 2020-09-25 16:49:00 UTC
So there is an option for a feature which doesn’t exist in kernel (yet, maybe not). The manual should point this feature might require a 5.9 kernel.
Yes, I agree the test is a good idea and does its job, however the documentation lacks some context, or maybe the test could be improved and test if kernel >= 5.9.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-09-25 17:07:11 UTC
Well, genkernel is an utility. It's not strictly bound to specific kernel versions or sources. Would you restrict the usage of drilling machines because some could fail when you will use them to drill a hole in steel-armoured concrete?

So all we can do is testing if specified compression method is supported by built kernel and throw an error in case it isn't supported.

But you have to understand the issue.

Like said, previous genpatches contained a patch for zstd support which was just dropped. But even gentoo-sources aren't the only sources available so telling user "Nah, you need 5.9+ for this" would be wrong.