From owner-freebsd-current@FreeBSD.ORG Mon Nov 11 20:56:45 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A1B1E0; Mon, 11 Nov 2013 20:56:45 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id E3C4826C4; Mon, 11 Nov 2013 20:56:44 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 386E55838F; Mon, 11 Nov 2013 14:56:44 -0600 (CST) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id iqpz0i+HFjiT; Mon, 11 Nov 2013 14:56:44 -0600 (CST) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 048D858388; Mon, 11 Nov 2013 14:56:44 -0600 (CST) Message-ID: <5281448B.8010809@freebsd.org> Date: Mon, 11 Nov 2013 14:56:43 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Devin Teske , Peter Grehan Subject: Re: [CFT] bsdinstall and zfsboot enhancements References: <5275C597.6070702@freebsd.org> <97944047-D575-4E2E-B687-9871DFE058E3@fisglobal.com> <52769CFE.5080707@freebsd.org> <5281340E.8080009@callfortesting.org> <52813F9E.8080304@freebsd.org> <4E00C3CC-75EA-4249-8D9F-42F37988F4CE@fisglobal.com> <528141C1.7080409@freebsd.org> <29ADA509-0BB7-435C-8AC1-1D5BC32D6DC8@fisglobal.com> In-Reply-To: <29ADA509-0BB7-435C-8AC1-1D5BC32D6DC8@fisglobal.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Current Current , "Teske, Devin" , Michael Dexter X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 20:56:45 -0000 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