diff options
Diffstat (limited to 'common/bootm.c')
-rw-r--r-- | common/bootm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/bootm.c b/common/bootm.c index c0f7bca6ce..2f02c156e5 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -710,9 +710,8 @@ int bootm_boot(struct bootm_data *bootm_data) const char *root_dev_name = devpath_to_name(bootm_data->root_dev); const struct cdev *root_cdev = cdev_by_name(root_dev_name); - if (root_cdev && root_cdev->uuid[0] != 0) { - rootarg = basprintf("root=PARTUUID=%s", root_cdev->uuid); - } else { + rootarg = cdev_get_linux_rootarg(root_cdev); + if (!rootarg) { rootarg = ERR_PTR(-EINVAL); if (!root_cdev) |