]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Add BCD store parser
authorJan Janssen <medhefgo@web.de>
Thu, 2 Dec 2021 12:07:23 +0000 (13:07 +0100)
committerJan Janssen <medhefgo@web.de>
Sat, 11 Dec 2021 20:32:23 +0000 (21:32 +0100)
commitf7bc0fb35b3b2ea51e719f50b65ccb74826f6ea8
tree0689b16ed80c80ccc18edd71f2fdbe6ffdc127dd
parent7700e9ba151338036131c89f37d4b2da5cc1af11
boot: Add BCD store parser

This replaces the memmem-based approach of finding a suitable title
for the windows boot manager with one that actually parses the BCD
store. It's probably faster but more importantly, it's more correct.

The memmem approach may detect stale title strings that are still
in the file but unused due to the way registry hives are updated.
This approach also allows us to detect if the BCD store is multi-boot
so that we can fall back on the generic one instead.
src/boot/efi/bcd.c [new file with mode: 0644]
src/boot/efi/bcd.h [new file with mode: 0644]
src/boot/efi/boot.c
src/boot/efi/meson.build