projg2 / installkernel-gentoo

Gentoo fork of installkernel from debianutils
GNU General Public License v2.0
19 stars 7 forks source link

Add ability to generate/install initrd or unified kernel image #10

Closed Nowa-Ammerlaan closed 12 months ago

Nowa-Ammerlaan commented 1 year ago

This basically copies the code from dist-kernel-utils.eclass. Doing this here instead gives several advantages:

What is new is the ability to specify an alternate initrd generator, and the ability to pass additional arguments. Examples of useful arguments one might want to pass are: --verbose or --uefi/--no-uefi (to toggle between generating an initrd or uki).

CC @desultory @gentoo/dist-kernel @mgorny See-also: https://github.com/gentoo/gentoo/pull/33727

Nowa-Ammerlaan commented 1 year ago

@mgorny After the discussion today on IRC I have changed this to only use dracut (or another initrd generator) if explicitly requested, and adjusted the eclass patch at https://github.com/gentoo/gentoo/pull/33727 to explicitly request dracut.

Now there is no functionally different behaviour (by default) for both installkernel-gentoo and installkernel-systemd.

Nowa-Ammerlaan commented 1 year ago

Gentle ping, I now also added an updated ebuild for sys-kernel/installkernel-gentoo-8 over at https://github.com/gentoo/gentoo/pull/33727