With old versions of genkernel (3.5) I could do: genkernel --kernel-config=.... bzImage initramfs and it would build first the bzImage and then the initramfs (a kernel without modules of course). Now with genkernel 4.1.0 when I do the same it skips bzImage and tries to build the initramfs where it gets very confused. In short, genkernel isn't handling multiple actions.
Oops, didn't see where genkernel lived.
Are you saying that this is working in genkernel-3.5.3.3?
Yes, I actually used it before realizing that I'd forgotten to update genkernel, updated genkernel, tried to use that command and it didn't work.
Could you please share use case for this? For example, you will end up with /boot/kernel-genkernel-x86_64-5.8.2-gentoo /boot/initramfs-genkernel-x86_64-5.8.2-gentoo but > # tree lib/modules/ > lib/modules/ > > 0 directories, 0 files => This kernel won't boot. There isn't even any module in initramfs...
MODULES=n
Oh, and just to add, I haven't tried it with the genkernel admittedly, but the reason I never used "all" before is because that would barf with MODULES=n because it didn't check whether there were modules to build or not and just went ahead and did a "make modules" which of course would fail.
Please try with genkernel-4... it shouldn't fail when .config doesn't contain any modules.
Ok, "all" does work.