puzzleos / stubby

UEFI bootloader stub
GNU Lesser General Public License v2.1
13 stars 8 forks source link

Linux 6.2.x and HANDOVER support #29

Open dermotbradley opened 1 year ago

dermotbradley commented 1 year ago

Hi

Linux kernel 6.2.0 has added a new config setting EFI_HANDOVER_PROTOCOL and marks this as deprecated.

Whilst this setting defaults to Y to enable handover support I was helping someone recently using UKI booting where it turned out the distro kernel in use had this unset.

stubby appears to rely on EFI_HANDOVER for booting.

I had a look at the systemd-boot code and they appear to have added support for alternative methods: https://github.com/systemd/systemd/pull/20918 and https://github.com/systemd/systemd/pull/24777

I also see a PR was raised in the past to remove HANDOVER support from systemd-boot, although the PR was closed, not merged: https://github.com/systemd/systemd/pull/25126/files

It would make sense to add non-handover support in the near future before distros start disabling it in 6.2.x+ kernels.

hallyn commented 1 year ago

Hi - definitely agreed that that (adding non-handover support) makes sense.

Is this something you'd be interested in sending a PR for? (If not I will aim to look at it soon-ish)

dermotbradley commented 1 year ago

Is this something you'd be interested in sending a PR for? (If not I will aim to look at it soon-ish)

Unfortunately it's not really in my area of expertise and so I wasn't intending to work on a PR.