sd-boot: minor tweaks as follow-up for #41863
This addresses some trivial points made by @keszybz in the PR review.
This commit is contained in:
+2
-3
@@ -2764,12 +2764,11 @@ static EFI_STATUS load_extras(
|
||||
}
|
||||
|
||||
const struct ExtraResourceInfo *x = NULL;
|
||||
FOREACH_ELEMENT(j, table) {
|
||||
FOREACH_ELEMENT(j, table)
|
||||
if (endswith_no_case(info->FileName, j->suffix)) {
|
||||
x = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!x) {
|
||||
log_warning("Unrecognized type of extra file '%ls', ignoring.", info->FileName);
|
||||
continue;
|
||||
@@ -3034,7 +3033,7 @@ static EFI_STATUS call_image_start(
|
||||
case LOADER_UKI:
|
||||
case LOADER_UKI_URL:
|
||||
/* For modern UKIs we'll not bother with 'initrd', but we'll instead support 'extra'
|
||||
* for loading credentials, sysext and confext. */
|
||||
* for loading credentials, sysexts, and confexts. */
|
||||
|
||||
err = load_extras(image_root, entry, &initrd_pages, &initrd_size);
|
||||
if (err != EFI_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user