In my genkernel setup, I'm using KERNEL_FILENAME and KERNEL_SYMLINK_FILENAME to change the names of the files installed to /boot (reason: a "production" and a "maintenance" installation sharing the same boot partition - this is used to keep the files separated). I would like to move from genkernel to distribution kernels for easier maintenance, but I'm missing this feature. Would it be possible to add it? Reproducible: Always forum discussion for reference: https://forums.gentoo.org/viewtopic-p-8736965.html#8736965
I suspect you can configure installkernel somehow to do this.
Two ways this could be done: - A hook for sys-kernel/installkernel as sam suggested, this could recognize the KERNEL_FILENAME and KERNEL_SYMLINK_FILENAME environment variables and rename the just-installed kernel accordingly, or - Compiling two different kernels with a different value for CONFIG_LOCALVERSION, the LOCALVERSION is appended to the regular kernel version and is respected by sys-kernel/installkernel. IMO this level of customization does not need an ebuild/eclass solution and it is already possible to do this. So I feel this is a WONTFIX.