Date: Thu, 24 Nov 2016 20:49:54 +0000 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 Message-ID: <bug-203777-8-YipkI75KT4@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-203777-8@https.bugs.freebsd.org/bugzilla/> References: <bug-203777-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203777 Devin Teske <dteske@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dteske@FreeBSD.org --- Comment #3 from Devin Teske <dteske@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203777-8-YipkI75KT4>