From owner-freebsd-bugs@freebsd.org Thu Nov 24 20:49:53 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5A95C534B3 for ; Thu, 24 Nov 2016 20:49:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D4C9D6D4 for ; Thu, 24 Nov 2016 20:49:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAOKnrNX070977 for ; Thu, 24 Nov 2016 20:49:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203777] bsdinstall(8) zfsboot script unusable for unattended installs, unless "internal" variable nonInteractive is set Date: Thu, 24 Nov 2016 20:49:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dteske@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2016 20:49:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203777 Devin Teske changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dteske@FreeBSD.org --- Comment #3 from Devin Teske --- You are intended to set this variable in /etc/installerconfig of your scrip= ted install. Is it ineffectual there? Or are you saying that you wish to not ha= ve to set it? Some people *want* interactive scripted installs. For example, I once worked at a company where it was hard to get installati= on media out to people. Networks were untrusted and we had to mail installers = to people (be they CD, DVD, USB, etc.). In such a case, leaving interactive prompts enabled by NOT setting nonInteractive=3D1 meant that the install me= dia could be wielded through a combination of telephone and e-mail instructions= to get through the interactive bits. Concretely, one case was where we had to instruct the installer to get the distribution sets from an alternate server (if nonInteractive=3D1 then you = simply get an error and you die, there is no prompt to allow you to select an alternate media source). So not every script should be setting nonInteractive=3D1. I think each scri= pt should make its own decisions. The standard way of creating a script for me (an author) is to enable debugging, watch the debug log to see which variables are being prompted-for when an interactive screen pops up, go code that variable into the answer-f= ile (/etc/installerconfig), and move on. When all the variables that are requir= ed have been given default values, I may or may-not then disable debug=3D1 in = the script (I think we turned it on by default some long time ago, anyway). Either way, nonInteractive=3D1 is actually not designed to make a script unattended. To make an install unattended, you have to pre-answer all the questions. The nonInteractive nob is just to tell the code that nobody is t= here to drive an interactive interface (e.g, a menu to select a media source) sh= ould given information not be sufficient. In other words, nonInteractive is there to tell the code "you cannot ``prom= pt for more'' when information is lacking". It does not disable msgbox's when errors occur, and it does not magically given answers to required questions (such as "what disk should I partition" -- which would be uber dangerous to make it answer itself when nonInteractive=3D1; you'd essentially have an installer that wreaks havoc on any/all hardware simply by booting it). For example, as has been the case for over 20 years, you set the network interface to igb1 but there is no such interface; if nonInteractive is set, that's the end of your journey (but if unset, you'll get a prompt to select your network interface). --=20 You are receiving this mail because: You are the assignee for the bug.=