fix(bootloader-interface): when there are no entries, don't attempt to set LoaderEntries

This commit is contained in:
alex committed 2025-11-02 01:38:07 -05:00
1 parent eabb612330
commit 84d60e09be
1 file changed
+6
+6
View File
@@ -134,6 +134,12 @@ impl BootloaderInterface {
// Add a null terminator to the end of the entry.
data.extend_from_slice(&[0, 0]);
}
// If no data was generated, we will do nothing.
if data.is_empty() {
return Ok(());
}
Self::VENDOR.set(
"LoaderEntries",
&data,