Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Oct 2011 08:26:26 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Daniel O'Connor <doconnor@gsoft.com.au>
Cc:        svn-src-head@freebsd.org, Craig Rodrigues <rodrigc@crodrigues.org>, 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
Message-ID:  <4E8B0982.8010508@freebsd.org>
In-Reply-To: <D6E8DE41-67EB-4886-8EA1-2F60D3EF81A0@gsoft.com.au>
References:  <201110031513.p93FD9ev015593@svn.freebsd.org> <CAG=rPVfLzEcF=jtj71a9m%2BrFvj1xHHy%2BMfHwi2Y%2BZQiwhwmx3Q@mail.gmail.com> <D6E8DE41-67EB-4886-8EA1-2F60D3EF81A0@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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