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).
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)
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.
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.