The attached patches add information on how to build (and why to build) an initramfs. It also "optimizes" the bootloader configuration a bit (as we now do not need separate configurations for genkernel/non-genkernel anymore). First set of patches are x86/amd64 only, but we need information on how to deal with initramfs on other platforms (as far as this isn't done yet). Reproducible: Always
Created attachment 305785 [details, diff] Patch for kernel configuration
Created attachment 305787 [details, diff] Patch for bootloader configuration
I am using sys-kernel/dracut-017-r1 to generate the initramfs, which works pretty nicely. sys-boot/grub-2.00_beta2-r1 will pickup the generated file automatically, without further configuration. Posting the content of some files in case this is interesting for documentation: == /etc/kernel/postinst.d/01_dracut == #!/bin/sh version=$1 image=$2 exec dracut --xz --force '' "$version" == /etc/portage/make.conf == ... DRACUT_MODULES="btrfs" If there is interest I can also share a short custom /init (incl. resume, lvm and root=UUID/LABEL support), which I used before switching to dracut.
dracut and all the other stuff needs to actually be marked stable before we can push this to the docs. grub2 is a whole other document waiting to happen -- it's nowhere near coming out of hardmask, so we don't need to even consider it.
AxS mentioned that "genkernel --install initramfs" might be sufficient as well, even though you don't use genkernel for kernel building. Trying that out now.
Created attachment 306623 [details, diff] Patch for kernel configuration Updates hb-install-x86+amd64-kernel.xml, now only uses genkernel to build the initramfs.
Patch committed