Genkernel in 2023
I really wanted to look into the new kernel building solutions for Gentoo and maybe migrate to dracut, but last time I tried, ~1.5 years ago, the initreamfs was now working for me.
And now in 2023 I’m still running genkernel for my personal boxes as well as other servers running Gentoo.
I guess some short term solutions really become defined tools :P
So this is how I rebuild my kernel nowadays:
- 
  Copy old config cd /usr/src cp linux-6.1.38-gentoo/.config linux-6.1.41-gentoo/
- 
  Remove old kernel build directories rm -r linux-6.1.31-gentoo
- 
  Run initial preparation ( eselect kernel set 1 && cd /usr/src/linux && make olddefconfig )
- 
  Call genkernel genkernel \ --no-menuconfig \ --no-clean \ --no-clear-cachedir \ --no-cleanup \ --no-mrproper \ --lvm \ --luks \ --mdadm \ --nfs \ --kernel-localversion="-$(hostname)-$(date '+%Y.%m.%d')" \ all
- 
  Rebuild the modules If in your /etc/genkernel.confyou haveMODULEREBUILDturned off, then also call emerge:emerge -1 @module-rebuild