boot: cover for hardware keys on phones/tablets
authorBrenton Simpson <appsforartists@google.com>
Wed, 3 Jul 2024 13:40:26 +0000 (15:40 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 18:00:04 +0000 (20:00 +0200)
commit71de25f2df501cd0ab8e639100ce23534d23a208
treed1a73983b2978f7242f5aab050e4207468cd5efe
parent243276f008219f552a40360170dc00aa4b0a8f23
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
(cherry picked from commit 2fda6f5fffcc05adaa5a08d976e09ad7cc97c1b3)
src/boot/efi/boot.c