diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-20 21:58:23 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:31 +0200 |
commit | 4e6b5d6503ce8f16f00df4aedd137e919026dfad (patch) | |
tree | 8b721e1fde6b17f202b771eb947e4fe216cb3f60 /cmd/bootefi.c | |
parent | 506dc52d5da1b6fea15da39904487c4b0218eaf2 (diff) |
efi_loader: create root node
Currently we assign a lot of protocols to loaded images though
these protocols are not related to them. Instead they should be
installed on a separate handle. Via the device path it is the
parent to the devices like the network adapter.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd/bootefi.c')
-rw-r--r-- | cmd/bootefi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index c8812b0f5e..5fc054c9da 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -49,6 +49,11 @@ efi_status_t efi_init_obj_list(void) if (ret != EFI_SUCCESS) goto out; + /* Initialize root node */ + ret = efi_root_node_register(); + if (ret != EFI_SUCCESS) + goto out; + /* Initialize EFI driver uclass */ ret = efi_driver_init(); if (ret != EFI_SUCCESS) |