So far, if the user didn't specify a valid GPT UID, state initialization failed with the not so helpful error message:
| ERROR: state state.of: probe failed: Invalid argument Improve this by also providing a helpful error message. Signed-off-by: Enrico Jörns <[email protected]> --- common/state/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/state/state.c b/common/state/state.c index ac6cd6e572..1c23ad4c80 100644 --- a/common/state/state.c +++ b/common/state/state.c @@ -649,6 +649,7 @@ struct state *state_new_from_node(struct device_node *node, bool readonly) if (cdev_is_block_disk(cdev)) { cdev = cdev_find_child_by_gpt_typeuuid(cdev, &barebox_state_partition_guid); if (IS_ERR(cdev)) { + dev_err(&state->dev, "cannot find backend GPT partition by PartitionTypeGUID\n"); ret = -EINVAL; goto out_release_state; } -- 2.47.3
