Hi Bjoern,
> Package: libefibootguard
> Version: 0.15-1
This is a rather old version of EFI Boot Guard... but upgrading won't help you here, see below reasoning.
> When opening and closing a context within libefibootguard, the bootloader config gets corrupted, inhibiting further boots of the system.
Whether or not they get "corrupted" depends on what you do (or rather not do) with a once opened environment. The problem is that, in the current implementation and semantics of libebgenv, `env_close()` first *writes* to the current environment and then closes it. If you happen to write the information you read, there's no corruption. However, you're writing to the environment for no good reason which one shouldn't do. This is why the SWUpdate binding to EFI Boot Guard (
https://github.com/sbabic/swupdate/blob/master/bootloader/ebg.c#L89-L91) goes to great lengths to avoid this behavior...
Yes, this will definitely need to be addressed in a libebgenv version 2.0.
Kind regards,
Christian
--
Dr. Christian Storm
Siemens AG, FT RPD CED
Friedrich-Ludwig-Bauer-Str. 3, 85748 Garching, Germany