robbat2 / genkernel

Working copy of genkernel tree: OBSOLETE, please see https://github.com/gentoo/genkernel
9 stars 65 forks source link

Preliminary support for systemd-boot bootloader. #23

Open ikelos opened 5 years ago

ikelos commented 5 years ago

This adds preliminary support for systemd-boot using the kernel-install tool. It's dependent upon systemd pull request #11281 (https://github.com/systemd/systemd/pull/11281) to work properly with initrd files.

It's a little ugly because it wipes out (to avoid double copying files) the ones that genkernel has already copied to /boot, since genkernel copies those in multiple different places in the code. Ideally those would be refactored and delayed until everything had built successfully, but that was a large refactoring, so for now this adds support as is.

robbat2 commented 5 years ago

@Whissi do you know if this is still needed?

Whissi commented 5 years ago

Well, if we want to support systemd's kernel-install tool, we need this -- at the moment we don't support that tool.

But I don't like this patch. Incoming review.