We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa285b commit 4e12442Copy full SHA for 4e12442
src/shared/find-esp.c
@@ -571,7 +571,11 @@ static int verify_xbootldr_udev(
571
r = sd_device_get_property_value(d, "ID_PART_ENTRY_TYPE", &v);
572
if (r < 0)
573
return log_error_errno(r, "Failed to get device property: %m");
574
- if (id128_equal_string(v, GPT_XBOOTLDR))
+
575
+ r = id128_equal_string(v, GPT_XBOOTLDR);
576
+ if (r < 0)
577
+ return log_error_errno(r, "Failed to parse ID_PART_ENTRY_TYPE=%s: %m", v);
578
+ if (r == 0)
579
return log_full_errno(searching ? LOG_DEBUG : LOG_ERR,
580
searching ? SYNTHETIC_ERRNO(EADDRNOTAVAIL) : SYNTHETIC_ERRNO(ENODEV),
581
"File system \"%s\" has wrong type for extended boot loader partition.", node);
0 commit comments