From owner-freebsd-sysinstall@FreeBSD.ORG Tue Nov 9 17:12:50 2010 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BDB21065672; Tue, 9 Nov 2010 17:12:50 +0000 (UTC) (envelope-from dteske@vicor.com) Received: from postoffice.vicor.com (postoffice.vicor.com [69.26.56.53]) by mx1.freebsd.org (Postfix) with ESMTP id E89678FC1A; Tue, 9 Nov 2010 17:12:49 +0000 (UTC) Received: from [208.206.78.30] (port=39174 helo=dt.vicor.com) by postoffice.vicor.com with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.71) (envelope-from ) id 1PFrkU-0003hN-NT; Tue, 09 Nov 2010 09:12:49 -0800 From: Devin Teske To: Ramblewski David In-Reply-To: <7EF5DBE4C76A7B4DA655334E9F2BFD26F3C451921B@FRSPX100.fr01.awl.atosorigin.net> References: <7EF5DBE4C76A7B4DA655334E9F2BFD26F3C451921B@FRSPX100.fr01.awl.atosorigin.net> Content-Type: text/plain Organization: Vicor, Inc Date: Tue, 09 Nov 2010 09:12:46 -0800 Message-Id: <1289322766.4270.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-41.el4) Content-Transfer-Encoding: 7bit X-Scan-Signature: addf82e302fb7b54175bfd27340b229c X-Scan-Host: postoffice.vicor.com Cc: "freebsd-questions@freebsd.org" , freebsd-sysinstall@freebsd.org Subject: Re: Specifying "Install Root" on non interactive sysinstall X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 17:12:50 -0000 On Tue, 2010-11-09 at 10:18 +0100, Ramblewski David wrote: > Hi, > > I'm looking for a solution to jumpstart FreeBSD on an non interactive way. > The solution provided by the Handbook recommend to use sysinstall program, that's what I'm trying to do. -sysinstall@ would have been a better choice for this question. Cross-posting my reply. > The servers are using PXE boot to mount an mfsbsd filesystem, everything works as expected until now. > I manually create the slice, labels and mount the partitions on "/mnt" partition. You might just want to try adding "diskInteractive=YES" to your install.cfg file. That way, you don't have to manually partition/slice/label your disk _before_ you load the config. By setting diskInteractive, when installCommit is called, it will: a. if `disk' is not set (e.g. disk=da0) throw up a menu to select which disk you want to partition b. throw you into the FDISK partition editor c. throw you into diskabel e. ask which boot code you want to install (if any) to the MBR Just a suggestion. > Then I manually launch "sysinstall loadConfig" to install packages classes but I didn't find the way to precise an "Install Root" for /mnt whereas it works if I did it on a interactive way using the options menu. Put this into your install.cfg: # Required by distExtractAll (called indirectly by installCommit): installRoot=/mnt > Does anyone know how to solve this issue? > > Here is my install.cfg file: > ------------------ > # Turn on extra debugging. > debug=YES > > # Ok, this ought to turn off ALL prompting, don't complain to me that you > # lost a machine because you netbooted it on the same subnet as this > # box > nonInteractive=YES > noWarn=YES > tryDHCP=YES > > # My host specific data > hostname=polbsd > domainname=priv.atos.fr > > ################################ > # Which installation device to use > nfs=10.28.222.1:/opt/local/jumpstart/tftpboot/BSD/NFS > netDev=bge0 > mediaSetNFS > ################################ > > ################################ > # Select which distributions we want. > dists= base SMP manpages ports Hmmm. Must be an older release. The SMP kernel has gone missing in FreeBSD-8.x. > distSetCustom > ################################ > > # OK, everything is set. Do it! > installCommit > > shutdown > ------------------ > > > Thanks, > > David -- Cheers, Devin Teske -> CONTACT INFORMATION <- Business Solutions Consultant II FIS - fisglobal.com 510-735-5650 Mobile 510-621-2038 Office 510-621-2020 Office Fax 909-477-4578 Home/Fax devin.teske@fisglobal.com -> LEGAL DISCLAIMER <- This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy. -> FUN STUFF <- -----BEGIN GEEK CODE BLOCK----- Version 3.1 GAT/CS d(+) s: a- C++(++++) UB++++$ P++(++++) L++(++++) !E--- W++ N? o? K- w O M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R>++ tv(+) b+(++) DI+(++) D(+) G+>++ e>+ h r>++ y+ ------END GEEK CODE BLOCK------ http://www.geekcode.com/ -> END TRANSMISSION <-