]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: fix osrel parser
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2020 14:20:32 +0000 (15:20 +0100)
committerChris Down <chris@chrisdown.name>
Tue, 7 Jan 2020 19:32:14 +0000 (19:32 +0000)
let's check VERSION instead of VERSION_ID where appropriate.

Fixes: #14493
src/boot/efi/boot.c

index 84293364b47eb03fd23cd0bed99d04bec966c520..e1a1a685279a7fddbeaa73b9c06c553f4fe2db74 100644 (file)
@@ -1958,7 +1958,7 @@ static VOID config_entry_add_linux(
                                 continue;
                         }
 
-                        if (strcmpa((CHAR8 *)"VERSION_ID", key) == 0) {
+                        if (strcmpa((CHAR8 *)"VERSION", key) == 0) {
                                 FreePool(os_version);
                                 os_version = stra_to_str(value);
                                 continue;