1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00

boot: fix osrel parser

let's check VERSION instead of VERSION_ID where appropriate.

Fixes: #14493
This commit is contained in:
Lennart Poettering 2020-01-07 15:20:32 +01:00 committed by Chris Down
parent ffe61e19cb
commit 4353974d75

View 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;