Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jun 2000 17:11:12 -0400
From:      "Charles N. Owens" <owensc@enc.edu>
To:        questions@freebsd.org
Subject:   sysinstall script disklabel problems -- help
Message-ID:  <395A69F0.2FA67C5D@enc.edu>

next in thread | raw e-mail | index | archive | help
Howdy,

I'm trying to automate most of the FreeBSD installation process via
sysinstall's scripting mechanism.  Its showing signs of life, but keeps
barfing on the disklabel step.  Below is appended my script.  Any ideas
as to what is wrong?  Could someone also perhaps post some examples that
do work?

I've followed the example install.cfg script as best I can, but no
dice.  I've also search the list archives but have found zero related
postings!

Anyhow, when I try to load the script, I get the error message (in a
dialog pop-up) "No root device found - you must label a partition as /
in the label editor."   Hitting enter gets me a similar message about
there being no swap device.  The script then aborts.  There are no error
messages in the debug window (ALT-F2) to help explain what's wrong with
the disklabel specification.

I'm wondering if the syntax for the disklabel stuff has changed... I've
begun staring at sysinstall's C code but am hoping that someone here
will save me from the inevitable headache.

Thanks much!
cno

The script:

#################################
# sysinstall script
#################################

debug=yes

#### Host specific stuff
hostname=myserv
domainname=foo.enc.edu
ipaddr=10.x.x.x
netmask=255.255.0.0
defaultrouter=10.x.x.x
nameserver=10.x.x.x

netDev=fxp0

# nfs install path common value
nfs=serverfoo:/u/big/FreeBSD/install
mediaSetNFS

#### distributions
dists=bin crypto
distSetCustom

#### fdisk stuff

# the disks...
disk=da0
partition=all
bootManager=standard
diskPartitionEditor
disk=da1
partition=all
bootManager=standard
diskPartitionEditor

#### disk label
da0s1-1=ufs 102400 /
da0s1-2=swap 1050624 none
da0s1-3=ufs 1050624 /usr
da0s1-4=ufs 1050624 /usr/local
da0s1-5=ufs 204800 /var
diskLabelEditor

# Main sysinstall script
#

######### the big commit!
installCommit

#### Add some packages
#package=tcsh-6.09.00.tgz
#packageAdd
#package=screen-3.9.5.tgz
#packageAdd
#package=rsaref-2.0.tgz
#packageAdd
#package=cfengine-1.5.3.tgz
#packageAdd
#package=lynx-2.8.2rel.1.tgz
#packageAdd
#package=unzip-5.4.0.tgz
#packageAdd

# play
command=df
system

shutdown

--
-------------------------------------------------------------------------

  Charles N. Owens                               Email: owensc@enc.edu
                                            http://www.enc.edu/~owensc
  Network & Systems Administrator
  Information Technology Services  "Outside of a dog, a book is a man's
  Eastern Nazarene College         best friend.  Inside of a dog it's
                                   too dark to read." - Groucho Marx
-------------------------------------------------------------------------





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?395A69F0.2FA67C5D>