`--print-esp-path` and `--print-boot-path` cannot be combined, so it's not
necessary to acquire the XBOOTLDR partition with `--print-esp-path`.
return r;
puts(arg_esp_path);
+ return 0;
}
r = acquire_xbootldr(/* unprivileged_mode= */ -1, &xbootldr_uuid, &xbootldr_devid);
return log_error_errno(SYNTHETIC_ERRNO(EACCES), "Failed to determine XBOOTLDR location: %m");
puts(path);
- }
-
- if (arg_print_esp_path || arg_print_dollar_boot_path)
return 0;
+ }
r = 0; /* If we couldn't determine the path, then don't consider that a problem from here on, just
* show what we can show */