If unprivileged_mode is false then verify_esp() will treat access errors
like any other and log about them. Here we set it to false, hence
there's no point to log a 2nd time.
/* ret_psize= */ NULL,
/* ret_uuid= */ NULL,
&esp_devid);
- if (r == -EACCES) /* We really need the ESP path for this call, hence also log about access errors */
- return log_error_errno(r, "Failed to determine ESP location: %m");
if (r < 0)
return r;
/* unprivileged_mode= */ false,
/* ret_uuid= */ NULL,
&xbootldr_devid);
- if (r == -EACCES)
- return log_error_errno(r, "Failed to determine XBOOTLDR partition: %m");
if (r < 0)
return r;