mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 19:52:22 +00:00
EFI string variables written without a trailing NUL, or with extra NUL padding, failed to decode and were silently treated as unset. Decode up to the first NUL and terminate the string ourselves, as systemd-boot does. Because empty values now decode to an empty string rather than failing, treat empty LoaderEntryDefault and LoaderEntryOneShot values as unset so an empty one-shot entry doesn't fail to match any entry.