udev: use ERRNO_IS_NEG_* where appropriate (#36690)
Follow-up for f8825c1364.
This commit is contained in:
@@ -150,7 +150,7 @@ static int find_gpt_root(UdevEvent *event, blkid_probe pr, const char *loop_back
|
||||
|
||||
r = efi_loader_get_device_part_uuid(&esp_or_xbootldr);
|
||||
if (r < 0) {
|
||||
if (r != -ENOENT && !ERRNO_IS_NOT_SUPPORTED(r))
|
||||
if (r != -ENOENT && !ERRNO_IS_NEG_NOT_SUPPORTED(r))
|
||||
return log_debug_errno(r, "Unable to determine loader partition UUID: %m");
|
||||
|
||||
log_device_debug(dev, "No loader partition UUID EFI variable set, not using partition data to search for default root block device.");
|
||||
|
||||
Reference in New Issue
Block a user