Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Oct 2008 17:14:56 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        current@freebsd.org
Subject:   setting bootverbose (or boothowto) from the kernel config file ?
Message-ID:  <20081010151456.GA27576@onelab2.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
In a diskless setting which does not use /boot/loader, i need to
control the value of 'bootverbose' to print extra debugging messages.

I just learned that using this line in the kernel config file

	env	"my_kenv_settings"

and providing a list of var.name=value in the file my_kenv_settings,
these values get dumped to compile/MYKERNEL/env.c and become accessible
from the kernel through getenv() (e.g. i used this for machdep.bios.pnp).

However i haven't found a way to set 'bootverbose', which is a sysctl
variable (debug.bootverbose) so it seems to be in a different namespace.

Any ideas ?

Also, what is exactly the relation between the two variables
'boothowto' (apparently set through the loader and containing
various flags) and 'bootverbose' (which is a sysctl) ?
Different parts of the kernel use one or the other to control
verbose output, and i am not sure if, e.g. setting RB_VERBOSE
in 'boothowto' also sets bootverbose...

	thanks
	luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081010151456.GA27576>