User:Veremit/Genkernel for musl

From Gentoo Wiki
Jump to: navigation, search

Fixing Genkernel for use on musl systems

There are several issues using Genkernel on musl systems. These include:

  • Insufficient patching for genkernel "sub-packages"
  • copying the musl linker files (or lack thereof)

Linker

  • There is no /etc/ld.so.cache in musl. This means we don't need to copy it in gen_initramfs#L509
  • Similarly no /etc/ld.so.conf.d. Remove from gen_initramfs#L512-513
  • We can remove the /etc/ld.so.conf.d folder from the initramfs #Lzzz