From owner-freebsd-current@FreeBSD.ORG Mon Nov 11 20:35:43 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DE611B39; Mon, 11 Nov 2013 20:35:43 +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 962452520; Mon, 11 Nov 2013 20:35:43 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id E3C4258392; Mon, 11 Nov 2013 14:35:42 -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 HCQirX47sX-U; Mon, 11 Nov 2013 14:35:42 -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 C428158391; Mon, 11 Nov 2013 14:35:42 -0600 (CST) Message-ID: <52813F9E.8080304@freebsd.org> Date: Mon, 11 Nov 2013 14:35:42 -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 , Michael Dexter 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Current Current , "Teske, Devin" , Peter Grehan 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:35:43 -0000 On 11/11/13 14:30, Teske, Devin wrote: > (disabling default gpg-signing until they fix a bug with the quoting) > > On Nov 11, 2013, at 11:46 AM, Michael Dexter wrote: > >> Hello all, >> >> I have been experimenting with various BSD and GNU/Linux boot media >> under bhyve and noticed that we may want to accommodate the "LiveCD" >> mode of the installer, which in turn requires the correct console. >> >> Currently, one is prompted for VT100 for installation but this does not >> appear to work/stick for LiveCD mode. >> >> Can anyone verify this? >> > Sorry, I mistook your issue in the previous e-mail to be on-going with the > thread it was inline with. > > "LiveCD" changes things a bit. > > (thinks) > > I would expect that a prompt could do: > > 1. modify /etc/ttys on the boot media > 2. run "init q" > > But there's a couple of assumptions... > > 3. Can we even write to /etc/ttys? > NB: We can write to /tmp because it's an md0 swap device > > So do we have to get fancy with slipping a unionfs layer backed by another > md swap device above the root? > > That would make every file on the boot media writable (writes would go to > the swap-backed md device and if you execute "rm -fW file" you can get back > files that have been previously unlinked -- unlinks are stored as whiteouts in > the swap backed md device). For all intents and purposes, the read-only file- > system becomes writable and we could then munge /etc/ttys to enable serial > only when a menu item is chosen. > > If I'm off-base, let me know... sounds like a lot of trouble. > > The alternative being that you enable serial by default but then I have to tell > field engineers to unplug barcode readers before they do an install??? (that's > a question, it may be entirely safe, but I've never tried, seems unsafe) > > Question is, how would you disable it? Goes back to writable filesystem. This is why I don't think we want to modify /etc/ttys. Instead we want to have init do the right thing (follow the boot console) with a single unchanged /etc/ttys. -Nathan