Date: Mon, 11 Nov 2013 14:56:43 -0600 From: Nathan Whitehorn <nwhitehorn@freebsd.org> To: Devin Teske <dteske@freebsd.org>, Peter Grehan <grehan@freebsd.org> Cc: Current Current <freebsd-current@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>, Michael Dexter <editor@callfortesting.org> Subject: Re: [CFT] bsdinstall and zfsboot enhancements Message-ID: <5281448B.8010809@freebsd.org> In-Reply-To: <29ADA509-0BB7-435C-8AC1-1D5BC32D6DC8@fisglobal.com> References: <C9783B1F-20EA-4C08-9947-70DF363E8B6A@fisglobal.com> <5275C597.6070702@freebsd.org> <97944047-D575-4E2E-B687-9871DFE058E3@fisglobal.com> <ABD90FE2-1540-410A-959E-D91D0BE811E3@freebsd.org> <52769CFE.5080707@freebsd.org> <5281340E.8080009@callfortesting.org> <BFE265FC-849A-4381-8DF7-216AD5584253@fisglobal.com> <52813F9E.8080304@freebsd.org> <4E00C3CC-75EA-4249-8D9F-42F37988F4CE@fisglobal.com> <528141C1.7080409@freebsd.org> <29ADA509-0BB7-435C-8AC1-1D5BC32D6DC8@fisglobal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/11/13 14:52, Teske, Devin wrote: > On Nov 11, 2013, at 12:44 PM, Peter Grehan wrote: > >> Hi Devin, >> >>> Question: >>> Does bhyve set kern.console irrespective of loader.conf values? >> The kernel sets it based on what it determines the console to be. Bhyve influences that by requesting a serial console. This is no different than booting on a headless machine with a serial console. >> > Well, for a headless meachine, I would set console=comconsole,vidconsole > in loader.conf(5), then our Forth code slurps it in via loader.4th + support.4th > routines... > > When boot is executed, I know I can see "kenv console", but hadn't realized > that there were/are a host of others that are slurped into the kernel for later > (very purposeful) fetching. > > So when you say that bhyve requests a serial console... I assume now it's > setting variables... but via raw Forth? C code? loader.conf(5)? I've seen my > menu come up under bhyve, and I noticed that it only has a 5-second count- > down instead of the usual 9 -- but I'm curious how you're exporting the variables. I think you've misunderstood. kern.console isn't set by loader. It reflects the state of the kernel, which decides what to do autonomously based on a number of driver and platform-dependent things including, but not limited to, kenv (loader variables, for instance). -Nathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5281448B.8010809>