find-esp: introduce _full() flavour of ESP/XBOOTLDR discovery functions
These functions take so many return paramaters, and in many of our cases we don't actually needt them. Hence introduce _full() flavours of the funcs, and hide the params by default.
This commit is contained in:
committed by
Luca Boccassi
parent
e87303d511
commit
8a2c423870
@@ -570,9 +570,7 @@ static int context_acquire_xbootldr(Context *c) {
|
||||
/* rfd= */ c->rfd,
|
||||
/* path= */ arg_xbootldr_path,
|
||||
/* unprivileged_mode= */ -1,
|
||||
/* ret_path= */ &c->boot_root,
|
||||
/* ret_uuid= */ NULL,
|
||||
/* ret_devid= */ NULL);
|
||||
/* ret_path= */ &c->boot_root);
|
||||
if (r == -ENOKEY) {
|
||||
log_debug_errno(r, "Couldn't find an XBOOTLDR partition.");
|
||||
return 0;
|
||||
@@ -596,12 +594,7 @@ static int context_acquire_esp(Context *c) {
|
||||
/* rfd= */ c->rfd,
|
||||
/* path= */ arg_esp_path,
|
||||
/* unprivileged_mode= */ -1,
|
||||
/* ret_path= */ &c->boot_root,
|
||||
/* ret_part= */ NULL,
|
||||
/* ret_pstart= */ NULL,
|
||||
/* ret_psize= */ NULL,
|
||||
/* ret_uuid= */ NULL,
|
||||
/* ret_devid= */ NULL);
|
||||
/* ret_path= */ &c->boot_root);
|
||||
if (r == -ENOKEY) {
|
||||
log_debug_errno(r, "Couldn't find EFI system partition, ignoring.");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user