efi_loader: check initialization of EFI subsystem is successful
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Mar 2018 14:29:02 +0000 (15:29 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:06 +0000 (11:00 +0200)
commitfc225e60822e3fd18a56b546eb683d6818d3f9c4
tree0e6f7c9b950bd3f9b3fd2206a29667f1e3cc1aa4
parent45204b1025e4e2a5cb984caab3adfdf53e658765
efi_loader: check initialization of EFI subsystem is successful

Up to now errors in the initialization of the EFI subsystems was not
checked.

If any initialization fails, leave the bootefi command.

We do not retry initialization because this would require to undo all prior
initalization steps.

Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c