From owner-freebsd-stable@FreeBSD.ORG Fri Oct 17 03:06:38 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C99B1065677 for ; Fri, 17 Oct 2008 03:06:38 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by mx1.freebsd.org (Postfix) with ESMTP id 115608FC12 for ; Fri, 17 Oct 2008 03:06:37 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqwEAM8S9kh5LWPz/2dsb2JhbACBcrkZhxt0dw X-IronPort-AV: E=Sophos;i="4.33,428,1220193000"; d="asc'?scan'208";a="212557907" Received: from ppp121-45-99-243.lns10.adl6.internode.on.net (HELO midget.dons.net.au) ([121.45.99.243]) by ipmail01.adl6.internode.on.net with ESMTP; 17 Oct 2008 13:36:07 +1030 Received: from inchoate.dons.net.au (Inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.14.3/8.14.2) with ESMTP id m9H35qlQ075319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Oct 2008 13:35:57 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Fri, 17 Oct 2008 13:35:40 +1030 User-Agent: KMail/1.9.9 References: <48F7E4CA.1020307@x10.com> In-Reply-To: <48F7E4CA.1020307@x10.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1669002.mJBKkcMvbb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200810171335.55372.doconnor@gsoft.com.au> X-Spam-Score: -1.906 () BAYES_00,SPF_FAIL X-Scanned-By: MIMEDefang 2.64 on 10.0.2.7 Cc: Geoff Sweet Subject: Re: broken install.cfg for sysinstall X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2008 03:06:38 -0000 --nextPart1669002.mJBKkcMvbb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3Dyes > > hostname=3Dnewserv > domainname=3Dx10.com > nameserver=3D10.16.0.2 > defaultrouter=3D10.16.0.1 > ipaddr=3D10.16.0.254 > netmask=3D255.255.255.0 > > mediaSetCDROM > > distSetEverything > > disk=3Dda0 > partition=3Dall > bootManager=3Dboot > diskPartitionEditor > da0s1a=3Dufs 4194304 / > da0s1b=3Dswap 4194304 > da0s1d=3Dufs 4194304 /home > da0s1e=3Dufs 4194304 /tmp > da0s1f=3Dufs 8388608 /usr > da0s1g=3Dufs 8388608 /usr/local > da0s1h=3Dufs 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 yo= u=20 see da0? Be very careful that you don't have extra characters at the end of a line (= eg=20 if you edit it in Windows) - I have a patch to fix it but it hasn't been=20 committed yet :( Here's what I use.. # Installation script for UD3 systems # # Current for 6.3-GENESIS # Turn on extra debugging. debug=3Dyes # Don't ask any questions. nonInteractive=3Dyes # This is needed so the mods made by genesis-config.tcl aren't # moved out of the way. keeprcconf=3Dyes # Make the installer accept the disk # XXX: if it rejects it the installer wedges (due to # non-interactive I believe) releaseName=3D6.3-GENESIS ################################ # My host specific data ################################ # Don't forget to edit these # for your network! netDev=3Dem0 hostname=3Dradar.gsoft.com.au domainname=3Dradar # Use these for DHCP ifconfig_em0=3DDHCP tryDHCP=3DYES # Use these for a static setup #nameserver=3D1.2.3.1 #defaultrouter=3D1.2.3.1 #ipaddr=3D1.2.3.4 #netmask=3D255.255.255.0 tcpMenuSelect ################################ ################################ # Install via CDROM mediaSetCDROM ################################ # Select which distributions we want. dists=3Dbase GENERIC sbase sbin scontrib scrypto setc sgames sgnu sinclude = skrb5=20 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=3Dda0 partition=3Dall bootManager=3Dboot 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=3Dufs 1048576 / 1 da0s1-2=3Dswap 2097152 none da0s1-3=3Dufs 1048576 /var 1 da0s1-4=3Dufs 20971520 /usr 1 da0s1-5=3Dufs 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=3D/dist/bin/sh /dist/genesis/post-install-fixup.sh system # Root password command=3D/usr/bin/passwd system =2D-=20 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 --nextPart1669002.mJBKkcMvbb Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBI+AET5ZPcIHs/zowRAs2PAJ9HG1+NrZko1JmUtnl0N3C5f4yvXgCfTadG rsUnPvpuHc4kXE6OJYD89Ss= =UR2H -----END PGP SIGNATURE----- --nextPart1669002.mJBKkcMvbb--