freebsd-dev/stand/efi/loader
Warner Losh 8ac2d6f5d6 Read in and parse /efi/freebsd/loader.env from the boot device's
partition as if it were on the command line.

Fetch FreeBSD-LoaderEnv UEFI enviornment variable. If set, read in
loader environment variables from it. Otherwise read in
/efi/freebsd/loader.env. Both are read relative to the device
loader.efi loaded from (they aren't full UEFI device paths)

Next fetch FreeBSD-NextLoaderEnv UEFI environment variable. If
present, read the file it points to in as above and delete the UEFI
environment variable so it only happens once.

This lets one set environment variables in the bootloader.
Unfortunately, we don't have all the mechanisms in place to parse the
file, nor do we have the magic pattern matching in place that
loader.conf has. Variables are of the form foo=bar. No quotes are
supported, so spaces aren't allowed, for example. Also, variables like
foo_load=yes are intercepted when we parse the loader.conf file and
things are done based on that. Since those aren't done here, variables
that cause an action to happen won't work.

Reviewed by: bcran
Differential Revision: https://reviews.freebsd.org/D20016
2019-04-29 05:02:25 +00:00
..
arch EFI: don't call printf after ExitBootServices, since it uses Boot Services 2019-03-02 04:02:11 +00:00
autoload.c loader: fdt: Add fdt_is_setup function 2019-04-25 20:08:43 +00:00
bootinfo.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
conf.c loader: implement map-vdisk and unmap-vdisk commands 2019-04-26 17:58:44 +00:00
copy.c Add retry loop around GetMemoryMap call to fix fragmentation bug 2019-03-06 05:39:40 +00:00
efi_main.c Cast error message in efi_main.c to CHAR16* to avoid build error 2018-12-13 23:49:20 +00:00
framebuffer.c efi-autoresizecons: Don't fail the boot w/o GOP or UGA 2018-08-04 06:40:18 +00:00
framebuffer.h
loader_efi.h
main.c Read in and parse /efi/freebsd/loader.env from the boot device's 2019-04-29 05:02:25 +00:00
Makefile Extend libsecureboot(old libve) to obtain trusted certificates from UEFI and implement revocation 2019-03-06 06:39:42 +00:00
Makefile.depend
version