]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r334882, r334884-r334885: loader(8) boot flag <-> environment fixes
authorkevans <kevans@FreeBSD.org>
Thu, 28 Jun 2018 01:32:37 +0000 (01:32 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 28 Jun 2018 01:32:37 +0000 (01:32 +0000)
commit0c4c0b7957a152df86a8a764e74a4c01cbd486ea
treec45eb5fef127c849d35f6d2eb6997d543f97b742
parent187058e18a29d7ee0cfbfe4512d30390a980634b
MFC r334882, r334884-r334885: loader(8) boot flag <-> environment fixes

r334882:
stand: Consolidate checking for boot flags driven by environment vars

e.g. boot_mute, boot_single, boot_verbose, and friends; we checked for these
in multiple places, consolidate into common/ and allow a setting of "NO" for
any of these to turn them off. This allows systems with multiple
loader.conf(5) or loader.conf(5) overlay systems to easily turn off
variables in later processed files by setting it to NO.

Reported by: Nick Wolff @ iXsystems
Reviewed by: imp

r334884:
stand: Fix build after r334882

Not sure how this was not caught in Universe.

r334885:
stand: One more trivial consolidation (setting environment from howto)
stand/common/boot.c
stand/common/bootstrap.h
stand/common/metadata.c
stand/efi/loader/bootinfo.c
stand/efi/loader/main.c
stand/i386/libi386/bootinfo.c
stand/userboot/userboot/bootinfo.c