summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-10-18 19:13:15 +0300
committerAlexander Graf <agraf@suse.de>2017-12-01 15:22:55 +0300
commitb57f48a87c980cbd7dc788c82e8bb513666dd6f6 (patch)
tree0d3c368a9c253429714949b2168c87545aee21ff /cmd
parentc2b53902ca28bc3a90861067af6fffeae6e5ead0 (diff)
downloadu-boot-b57f48a87c980cbd7dc788c82e8bb513666dd6f6.tar.xz
efi_loader: use bootargs as load options
Use environment variable bootargs used as load options for bootefi payloads. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 0915192bbb..67855ba685 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -218,6 +218,8 @@ static efi_status_t do_bootefi_exec(void *efi, void *fdt,
efi_install_configuration_table(&fdt_guid, NULL);
}
+ /* Transfer environment variable bootargs as load options */
+ set_load_options(&loaded_image_info, "bootargs");
/* Load the EFI payload */
entry = efi_load_pe(efi, &loaded_image_info);
if (!entry) {