summaryrefslogtreecommitdiff
path: root/src/fundamental
diff options
context:
space:
mode:
authorVictor Westerhuis <victor@westerhu.is>2021-11-14 16:26:03 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-22 12:17:52 +0200
commit87c7779599ade84df7934c563adb7fe550c871f7 (patch)
tree28be84362d779d24a270549865f0852862154454 /src/fundamental
parenta17ebc687bcd7c9dd0e2ff2502cbddd73c8c01a1 (diff)
downloadsystemd-87c7779599ade84df7934c563adb7fe550c871f7.tar.gz
Do not require a valid version when parsing sd-boot loader entries
This fixes #20820
Diffstat (limited to 'src/fundamental')
-rw-r--r--src/fundamental/bootspec-fundamental.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fundamental/bootspec-fundamental.c b/src/fundamental/bootspec-fundamental.c
index 89e29f5982..c0138926a5 100644
--- a/src/fundamental/bootspec-fundamental.c
+++ b/src/fundamental/bootspec-fundamental.c
@@ -46,7 +46,7 @@ sd_bool bootspec_pick_name_version_sort_key(
good_version = os_image_version ?: (os_version ?: (os_version_id ? : os_build_id));
good_sort_key = os_image_id ?: os_id;
- if (!good_name || !good_version)
+ if (!good_name)
return sd_false;
if (ret_name)