From owner-svn-src-head@FreeBSD.ORG Tue Oct 4 13:26:36 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEFA9106566C; Tue, 4 Oct 2011 13:26:36 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 9C78C8FC15; Tue, 4 Oct 2011 13:26:36 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=windows-1252; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LSJ00208MOBTF00@smtpauth3.wiscmail.wisc.edu>; Tue, 04 Oct 2011 08:26:35 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.72.39]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LSJ001ISMO27Y00@smtpauth3.wiscmail.wisc.edu>; Tue, 04 Oct 2011 08:26:27 -0500 (CDT) Date: Tue, 04 Oct 2011 08:26:26 -0500 From: Nathan Whitehorn In-reply-to: To: Daniel O'Connor Message-id: <4E8B0982.8010508@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.72.39 X-Spam-PmxInfo: Server=avs-9, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.10.4.105414, SenderIP=76.210.72.39 References: <201110031513.p93FD9ev015593@svn.freebsd.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20110928 Thunderbird/7.0 Cc: svn-src-head@freebsd.org, Craig Rodrigues , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225937 - in head: . release release/amd64 release/i386 release/ia64 release/pc98 release/powerpc release/scripts release/sparc64 usr.sbin usr.sbin/sysinstall X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 13:26:36 -0000 On 10/03/11 20:35, Daniel O'Connor wrote: > On 04/10/2011, at 8:41, Craig Rodrigues wrote: >> Can bsdinstall be used as a drop-in replacement for >> sysinstall when run with the "SCRIPT SYNTAX" batch mode? >> If not, how much code would need to be added to bsdinstall? Or, is there >> some other utility, such as something from the PC-BSD suite of scripts, >> that can be used as a drop-in replacement for sysinstall in "SCRIPT >> SYNTAX" mode? > No it can't, but speaking as someone who used this feature in sysinstall… Good riddance :) > > I wrote a shell script which does an install itself (i.e. no bsdinstall - which is just [mostly] a shell script). > > It is 200 lines, a fair chunk of which is pre-canned stuff to go into rc.conf, loader.conf, etc.. > > http://www.gsoft.com.au/~doconnor/install-os.sh > > I also modified the rc.local script the installer uses to add an option to call my script. > Although pc-sysinstall is probably the [much] better choice for scripting, there are facilities in bsdinstall to help writing of custom installers like this, and the regular installer is in fact an example of a scripted install. There's some more information in bsdinstall(8) for the curious. -Nathan