boot: cover for hardware keys on phones/tablets
authorBrenton Simpson <appsforartists@google.com>
Wed, 3 Jul 2024 13:40:26 +0000 (15:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Jul 2024 14:15:04 +0000 (16:15 +0200)
commit2fda6f5fffcc05adaa5a08d976e09ad7cc97c1b3
tree25681a064aa3d00c302608690976973a1fe56499
parentea22cbc3278b42b0e0d96338e60a135fe37f73f1
boot: cover for hardware keys on phones/tablets

The patch is originally from Brenton Simpson, I (Lennart) just added some
comments and rebased it.

I didn't test this, but the patch looks so obviously right to me, that
I think we should just merge it, instead of delaying this further. In
the worst case noone notices, in the best case this makes sd-boot work
reasonably nicely on devices that only have a hadware power key + volume
rocker.

Fixes: #30598
Replaces: #31135
src/boot/efi/boot.c