Date: Fri, 17 Oct 2008 13:35:40 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: Geoff Sweet <geoffs@x10.com> Subject: Re: broken install.cfg for sysinstall Message-ID: <200810171335.55372.doconnor@gsoft.com.au> In-Reply-To: <48F7E4CA.1020307@x10.com> References: <48F7E4CA.1020307@x10.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810171335.55372.doconnor>