]> 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)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 May 2025 11:50:50 +0000 (12:50 +0100)
When profiles were added with a new interation this was left as
a return statement instead of a continue

Follow-up for 382e4da4a5b25ad0c225b4a8092ed24a44c84e18

(cherry picked from commit 7c7aeb9b8d2ba28e8915a6103237da8f39410794)

src/boot/boot.c

index e0a30d0184d06d630925618382c10699974f0979..c05b5f58e86ef1db06caf3f327cb93d4c2b2d1ab 100644 (file)
@@ -2340,7 +2340,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);