freebsd-skq/sys/boot/common
smh d6a31ebe03 Prevent loader.conf load failure due to unknown console entries
When processing loader.conf if console contained an entry for an unsupported
console then cons_set would return an error refusing to set any console.

This has two side effects:

1. Forth would throw a syntax error and stop processing loader.conf at that
  point.
2. The value of console is ignored.

#1 Means other important loader.conf entries may not be processed, which is
   clearly undesirable.
#2 Means the users preference for console aren't applied even if they did
   contain valid options. Now we have support for multi boot paths from a
   single image e.g. bios and efi mode the console preference needs to deal
   with the need to set preference for more than one source.

Fix this by:
* Returning CMD_OK where possible from cons_set.
* Allowing set with at least one valid console to proceed.

Reviewed by:	allanjude
MFC after:	1 week
Sponsored by:	Multiplay
Differential Revision:	https://reviews.freebsd.org/D5018
2016-01-21 15:27:44 +00:00
..
bcache.c
boot.c
bootstrap.h Make common boot file_loadraw name parameter const 2016-01-15 00:55:36 +00:00
commands.c
console.c Prevent loader.conf load failure due to unknown console entries 2016-01-21 15:27:44 +00:00
crc32.c
crc32.h
dev_net.c Refactor net_getparams() to make it easier to get params from sources other 2015-05-18 15:46:43 +00:00
dev_net.h Refactor net_getparams() to make it easier to get params from sources other 2015-05-18 15:46:43 +00:00
devopen.c
disk.c Implement simple ops for umass_disk 2015-11-27 18:17:53 +00:00
disk.h Implement simple ops for umass_disk 2015-11-27 18:17:53 +00:00
gpt.c
gpt.h
help.common
install.c Change the order of the arguments to file_loadraw(). They were swapped 2014-11-01 18:51:48 +00:00
interp_backslash.c
interp_forth.c Improve non-interactive forth cmd error reporting 2016-01-13 18:33:12 +00:00
interp_parse.c
interp.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
isapnp.c
isapnp.h
load_elf32_obj.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf32.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf64_obj.c
load_elf64.c
load_elf_obj.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
load_elf.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
loader.8 Document loader(8) dumpdev option 2015-11-18 09:42:36 +00:00
ls.c
Makefile Install loader(8) and zfsloader(8) only once 2015-06-19 05:42:24 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
Makefile.inc Install loader(8) and zfsloader(8) only once 2015-06-19 05:42:24 +00:00
md.c Small change in header order to allow this to compile. 2015-04-27 07:38:46 +00:00
merge_help.awk
misc.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
module.c Make common boot file_loadraw name parameter const 2016-01-15 00:55:36 +00:00
newvers.sh Make vers.c creation atomic by using a temporary file, then moving 2015-10-24 21:59:58 +00:00
panic.c
part.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
part.h
pnp.c
reloc_elf32.c
reloc_elf64.c
reloc_elf.c
self_reloc.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
ufsread.c Fix EFI UFS caching 2016-01-21 08:58:39 +00:00
util.c strncmp for boot code: fix an off by one error 2013-04-05 09:14:30 +00:00
util.h
zfsloader.8 Misc mdoc fixes: 2014-11-23 21:00:00 +00:00