dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
598 stars 397 forks source link

feat(install.d) Support ukify for kernel-install #2479

Open rahilarious opened 1 year ago

rahilarious commented 1 year ago

This patch allows users to generate UKI with systemd & use dracut for initramfs.

How it works

Recently (commit) ukify gained ability to add all initrd's placed in $KERNEL_INSTALL_STAGING_AREA to UKI file. With this patch initrd will be placed in $KERNEL_INSTALL_STAGING_AREA for ukify users, allowing seamless automation with kernel-install.

Checklist

Fixes

Need for hacks & hooks to let dracut & ukify get along well

LaszloGombos commented 1 year ago

Need for hacks & hooks to let dracut-ukify get along well

Be careful for justifying this work with dracut-ukify. dracut-ukify seem to exists only as an AUR package for arch only. Generally distro specific changes will expect a bit more scrutiny - see https://github.com/dracutdevs/dracut/wiki/Dracut-development#reviews .

rahilarious commented 1 year ago

dracut-ukify seem to exists only as an AUR package for arch only.

Well, I just used "dracut-ukify" as to indicate some kind of bridge/bond between two programs. Being a Gentoo user, I wasn't even aware that such thing exists in AUR.

Generally distro specific changes will expect a bit more scrutiny

Indeed, this is true, if this was about AUR package.(but it's not)

This will work on any distro with systemd-boot (yes even on gentoo with openrc) with latest git version (or >=systemd 254.2)

rahilarious commented 1 year ago

Sorry, I don't agree with what this PR wants to add, so it's a no from me.

Seems like anti-ukifyism going on here. Some grudge against ukify/systemd? Anything related to it gets denied.

aafeijoo-suse commented 1 year ago

Sorry, I don't agree with what this PR wants to add, so it's a no from me.

Seems like anti-ukifyism going on here. Some grudge against ukify/systemd? Anything related to it gets denied.

It's one thing to support kernel-install parameters within the kernel-install scripts shipped with dracut (#2495), and quite another to support other random uki generators and what they want to do.

You can interpret it as you wish.

rahilarious commented 1 year ago

quite another to support other random uki generators and what they want to do.

Sir, this is no random generator. Ukify is built into systemd.

It's one thing to support kernel-install

This patch IS about kernel-install script. So dracut will generate & copy initramfs to proper directory where it can be picked up by other plugins (install.d scripts)

stale[bot] commented 11 months ago

This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions.