[PATCH] fs: efivarfs: allow creating variables under any GUID in loader mode
Sascha Hauer
s.hauer at pengutronix.de
Fri Aug 28 05:52:05 PDT 2026
On Wed, 26 Aug 2026 11:37:13 +0200, Ahmad Fatoum wrote:
> efivars_create() refuses to create variables outside the barebox vendor
> GUID. That dates from when barebox was only an EFI payload: on somebody
> else's firmware, whose NVRAM holds the platform's own state, a shell that
> can create Boot#### or BootOrder under the global GUID is a liability,
> and the payload only ever needs barebox-env-<guid> anyway.
>
> The EFI loader took the same efivarfs over unchanged, where the argument
> does not hold. The store is barebox' own in-memory buffer backed by a
> file it writes itself, and everything the loader starts - the UEFI
> Shell, GRUB, the OS - can already create variables under any GUID. Only
> the barebox shell was held back:
>
> [...]
Applied, thanks!
[1/1] fs: efivarfs: allow creating variables under any GUID in loader mode
https://git.pengutronix.de/cgit/barebox/commit/?id=97f6cf9c5acb (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list