Use case insensitive comparison for the machine's architechture
authorDaniel Martinez <danielmartinez@cock.li>
Sun, 6 Oct 2024 03:39:43 +0000 (23:39 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 8 Oct 2024 15:39:12 +0000 (16:39 +0100)
commitd65b7426e93e50c470173614c2eaca094f318ab5
treedaac02dd14e99175e894acf2e8c4d4fd0fd3f603
parent84cd501ae4d2689ac39e510d1d33b7e3234f5199
Use case insensitive comparison for the machine's architechture

boot loader specification states:

architecture: refers to the architecture this entry is for. The argument
should be an architecture identifier, using the architecture vocabulary
defined by the EFI specification (i.e. IA32, x64, IA64, ARM, AA64, …).
If specified and it does not match the local system architecture this
entry should be hidden. The comparison should be done case-insensitively.

Example: architecture aa64

https://uapi-group.org/specifications/specs/boot_loader_specification/#type-1-boot-loader-entry-keys
(cherry picked from commit f819a516dbbddb16724f33dcef5badcb6fe8b80b)
src/boot/efi/boot.c