]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: do not stop parsing profiles if .cmdline is missing
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 22 May 2025 21:38:11 +0000 (22:38 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 23 May 2025 07:53:03 +0000 (09:53 +0200)
When profiles were added with a new interation this was left as
a return statement instead of a continue

Follow-up for 382e4da4a5b25ad0c225b4a8092ed24a44c84e18

src/boot/boot.c

index bf8f5a1a34d3f4b358d58e89ce4ab3aa92a56c90..925cc0c41d28ba0905545df50ce19d1ee9fcdd37 100644 (file)
@@ -2290,7 +2290,7 @@ static void boot_entry_add_type2(
                 boot_entry_parse_tries(entry, path, filename, u".efi");
 
                 if (!PE_SECTION_VECTOR_IS_SET(sections + SECTION_CMDLINE))
-                        return;
+                        continue;
 
                 content = mfree(content);