trying to get zstd compressed modules into initramfs fails: * >> Appending modules cpio data ... * modules: 0 modules copied. Is that correct? i have use zstd enabled globally and have removed /var/cache/genkernel after recompiling kmod with zstd. modules.dep has the zstd compressed modules listed.
I can confirm this is also the case when using xz compressed modules with genkernel 4.3.6.
Created attachment 882359 [details] genkernel.log Log file generated with `genkernel initramfs --loglevel=5`. It looks like it's using the generated kconfig in GK_SHARE, not using my .config in /usr/src/linux. * Using kernel config file '/usr/share/genkernel/arch/x86_64/generated-config' ... * mount: >> Boot partition is already mounted in read-write mode on '/boot'. * initramfs: >> Initializing ... * Checking if module compression algorithm 'ZSTD' is being used ... * Cannot use 'ZSTD' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_ZSTD' is not set! * Checking if module compression algorithm 'GZIP' is being used ... * Cannot use 'GZIP' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_GZIP' is not set! * Checking if module compression algorithm 'XZ' is being used ... * Cannot use 'XZ' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_XZ' is not set! * Checking if module compression algorithm 'NONE' is being used ... * Cannot use 'NONE' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_NONE' is not set!
Confirmed that if you explicitly set `--kernel-config`, the module compression is determined correctly. $ sudo genkernel initramfs --kernel-config=/usr/src/linux/.config * Using kernel config file '/usr/src/linux-6.1.67-gentoo/.config' ... * mount: >> Boot partition is already mounted in read-write mode on '/boot'. * initramfs: >> Initializing ... * Checking if module compression algorithm 'ZSTD' is being used ... * Cannot use 'ZSTD' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_ZSTD' is not set! * Checking if module compression algorithm 'GZIP' is being used ... * Cannot use 'GZIP' algorithm for module compression, kernel option 'CONFIG_MODULE_COMPRESS_GZIP' is not set! * Checking if module compression algorithm 'XZ' is being used ... * Will use 'XZ' algorithm for kernel module compression! * >> Appending devices cpio data ...