Specifying "Install Root" on non interactive sysinstall

Devin Teske dteske at vicor.com
Tue Nov 9 17:12:50 UTC 2010


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 at 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 <-



More information about the freebsd-questions mailing list