Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2013 12:43:18 -0800
From:      Peter Grehan <grehan@freebsd.org>
To:        Nathan Whitehorn <nwhitehorn@freebsd.org>, Devin Teske <dteske@freebsd.org>, Michael Dexter <editor@callfortesting.org>
Cc:        Current Current <freebsd-current@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>, freebsd-arch@freebsd.org
Subject:   Re: [CFT] bsdinstall and zfsboot enhancements
Message-ID:  <52814166.4040105@freebsd.org>
In-Reply-To: <52813E53.20403@freebsd.org>
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> <F3512B82-7B2E-40D9-A513-C4C2430F9255@fisglobal.com> <52813E53.20403@freebsd.org>

index | next in thread | previous in thread | raw e-mail

Hi Nathan,

> I think modifying init is the way to go -- it keeps the install system
> from interfering with the installed one, as well as fixing this kind of
> issue with moved hard drives or PXE booting or what have you.

  I now agree with this :) Modifying /etc/ttys at install time doesn't 
work for a lot of cases, LiveCD being the most obvious.

> I would propose one of the following (and volunteer to write the code):
>
> Option A
> ------------
>
> 1. init checks if there is an entry in /etc/ttys for the terminal[s]
> corresponding to the value[s] in kern.console
> 2. If an entry for each console terminal exists in /etc/ttys, enable it
> 3. If not, invent one with a terminal type of "ansi"
>
> The one issue here is that someone may want to force a particular entry
> to off and still have it be the kernel console. This is tricky. We could
> invent a new "status" field that is not "on" or "off" ("auto", maybe, or
> "ifconsole"?). Which brings us to:

  I'd guess that this mode is really a once-off thing - for a live CD, 
init could ask the user if they want a getty spawned on this tty similar 
to asking for a shell in single-user mode.

  Presumably post-install the user would have edited the ttys file and 
init would then be able to locate the entry and not have to prompt.

later,

Peter.



home | help

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