On Friday 17 October 2008 11:35:14 Geoff Sweet wrote:> I'm trying desperately to make my install.cfg file work. Documentation
> is sparse online and based on the few examples I have been able to find
> I can created this:
>
> ---
> debug=yes
>
> hostname=newserv
> domainname=x10.com
> nameserver=10.16.0.2
> defaultrouter=10.16.0.1
> ipaddr=10.16.0.254
> netmask=255.255.255.0
>
> mediaSetCDROM
>
> distSetEverything
>
> disk=da0
> partition=all
> bootManager=boot
> diskPartitionEditor
> da0s1a=ufs 4194304 /
> da0s1b=swap 4194304
> da0s1d=ufs 4194304 /home
> da0s1e=ufs 4194304 /tmp
> da0s1f=ufs 8388608 /usr
> da0s1g=ufs 8388608 /usr/local
> da0s1h=ufs 0 /var
> diskLabelEditor
> diskPartitionWrite
> diskLabelCommit
>
> installCommit
>
> shutdown
> ---
>
> yet when I load that config from the installer booted off the CD, it
> loads the file, prompts me to remove it from the floppy, then throws the
> message:
>
> "No root device found - you must label a partition as / in the label
> editor"
>
> But I can't find any examples of how to make that happen. Can't
someone
> offer some insight? I have about 60 servers to install and even getting
> this basic install.cfg file will be a big help.
What is shown when you press alt-f2?
If you go back to console 0 (alt-f1) and press scrolllock and page up do you
see da0?
Be very careful that you don't have extra characters at the end of a line
(eg
if you edit it in Windows) - I have a patch to fix it but it hasn't been
committed yet :(
Here's what I use..
# Installation script for UD3 systems
#
# Current for 6.3-GENESIS
# Turn on extra debugging.
debug=yes
# Don't ask any questions.
nonInteractive=yes
# This is needed so the mods made by genesis-config.tcl aren't
# moved out of the way.
keeprcconf=yes
# Make the installer accept the disk
# XXX: if it rejects it the installer wedges (due to
# non-interactive I believe)
releaseName=6.3-GENESIS
################################
# My host specific data
################################
# Don't forget to edit these
# for your network!
netDev=em0
hostname=radar.gsoft.com.au
domainname=radar
# Use these for DHCP
ifconfig_em0=DHCP
tryDHCP=YES
# Use these for a static setup
#nameserver=1.2.3.1
#defaultrouter=1.2.3.1
#ipaddr=1.2.3.4
#netmask=255.255.255.0
tcpMenuSelect
################################
################################
# Install via CDROM
mediaSetCDROM
################################
# Select which distributions we want.
dists=base GENERIC sbase sbin scontrib scrypto setc sgames sgnu sinclude skrb5
slib slibexec srelease srescue ssbin ssecure sshare ssys stools subin susbin
distSetCustom
################################
################################
# Now set the parameters for the partition editor. Set to use the
# disk exclusively (could also be "all" to use the whole disk but
# respecting the MBR or "free" to use only unallocated space for
FreeBSD).
#
disk=da0
partition=all
bootManager=boot
diskPartitionEditor
################################
# Create partitions
# Filesystems:
#
# / 512MB
# swap 1024MB
# /var 512MB
# /usr 10240MB
# /local0 everything else
#
# Remember to change ad0 to da0 in these if you are using SCSI!
da0s1-1=ufs 1048576 / 1
da0s1-2=swap 2097152 none
da0s1-3=ufs 1048576 /var 1
da0s1-4=ufs 20971520 /usr 1
da0s1-5=ufs 0 /local0 1
diskLabelEditor
################################
# OK, everything is set. Do it!
installCommit
# We can use stuff that from bin dist below here.
# /dist is where the media is mounted
command=/dist/bin/sh /dist/genesis/post-install-fixup.sh
system
# Root password
command=/usr/bin/passwd
system
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url :
http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20081017/64fc13fa/attachment.pgp