]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: minor tweaks as follow-up for #41863
authorLennart Poettering <lennart@amutable.com>
Wed, 29 Apr 2026 13:52:29 +0000 (15:52 +0200)
committerLennart Poettering <lennart@amutable.com>
Wed, 29 Apr 2026 13:53:21 +0000 (15:53 +0200)
This addresses some trivial points made by @keszybz in the PR review.

src/boot/boot.c

index fff35de864b8c46280fa207f8fed372595b4c58d..a2a1becc9aaa092349002ee715949089910b102b 100644 (file)
@@ -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)