Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 1998 09:34:58 -0500 (EST)
From:      Andrew Gallatin <gallatin@CS.Duke.EDU>
To:        freebsd-questions@FreeBSD.ORG
Cc:        sto@stat.duke.edu
Subject:   install.cfg questions/problems
Message-ID:  <199801291434.JAA20912@hurricane.cs.duke.edu>

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

I'm attempting to automate the installation of FreeBSD 2.2.5-RELEASE
on a number of machines using sysinstall's 'install.cfg' loadable
configuration file. So far, it appears to have mostly worked (and sure
beats the way I used to do it!).  But I'm having some problems with
the disklabel portion.  My disklabel section is as follows:

......
# A 96MB root partition, followed by a 0.5G swap partition, followed by
# a 1G /var, and a /usr using all the remaining space on the disk
#
sd0s1-1=ufs 196608 /
sd0s1-2=swap 1048576 none
sd0s1-3=ufs 2097152 /var
sd0s1-4=ufs 0 /usr
# Let's do it!
diskLabelEditor
......

The machine complains:
	
	WARNING:  You have more than one root device set?!

And proceeds to complain about the lack of swap, /var and /usr
partitions.  But the installation proceeds without further ado, and
everything is installed as it should be.  The disklabel ends up as I
specified, and everything is put in the proper place.  The only real
problem becomes apparent when, after the machine is rebooted, the
fstab looks like this:

......
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/sd0a               /               ufs     rw              1       1
/dev/sd0a               /usr            ufs     rw              1       1
/dev/sd0a               /var            ufs     rw              1       1
/dev/sd0a               none            swap    sw              0       0
proc                    /proc           procfs  rw              0       0
......

This isn't really the problem it might be, as I have a post-install
script I run out of pkg_add which has to massage the fstab anyway.  So 
for now I'm working around this by having that script generate the
entire fstab on the fly.

Also, is there any way to specify per-interface media options
non-interactively? Eg, I would like to tack on "media 100baseTX
mediaopt full-duplex" to my fxp0 interface; right now that's the only
thing I have to do manually.

Thanks in advance for the help!

Drew

PS: I've put up a minor WWW page about the virtues of install.cfg
at http://www.cs.duke.edu/~gallatin/sysinstall.html

------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer	http://www.cs.duke.edu/~gallatin
Duke University				Email: gallatin@cs.duke.edu
Department of Computer Science		Phone: (919) 660-6590



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