# Installation script for UD3 systems # # Current for 6.2-GENESIS # Turn on extra debugging. debug=yes nonInteractive=yes # Make the installer accept the disk # XXX: if it rejects it the installer wedges (due to # non-interactive I believe) releaseName=6.2-GENESIS ################################ # My host specific data ################################ # Don't forget to edit these # for your network! netDev=bge0 hostname=newradar.gsoft.com.au domainname=gsoft.com.au # Use these for DHCP ifconfig_bge0=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 on ad0. 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). # # Remember to change this to da0 if you are using SCSI! disk=twed0 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! twed0s1-1=ufs 1048576 / 1 twed0s1-2=swap 2097152 none twed0s1-3=ufs 1048576 /var 1 twed0s1-4=ufs 20971520 /usr 1 twed0s1-5=ufs 0 /local0 1 diskLabelEditor ################################ # OK, everything is set. Do it! installCommit # Fixup temp space command=/dist/bin/rm -rf /tmp /var/tmp /usr/tmp /local0/tmp system command=/dist/bin/mkdir /local0/tmp system command=/dist/bin/chmod 1777 /local0/tmp system command=/dist/bin/ln -s /local0/tmp / system command=/dist/bin/ln -s /local0/tmp /var system command=/dist/bin/ln -s /local0/tmp /usr system # Remove any flags which would impede tar later on command=/dist/bin/sh -c '/rescue/chflags -R noopaque,nosappnd,noschg,nosunlnk,nouappnd,nouchg,nouunlnk /bin /lib /libexec /usr/bin /usr/lib /usr/sbin' system # Unpack the FS image command=/dist/bin/sh -c '/rescue/cat /dist/image.tar.bz2.* | (cd / ; /rescue/tar -xpf -)' system # Tidy up crud from the image command=/dist/bin/sh -c '/dist/bin/rm -rf /home/radar /usr/local/etc/rc.d/skiymet.sh /usr/local/etc/rc.d/profiler.sh /usr/local/etc/rc.d/auroral.sh /usr/local/etc/rc.d/000.system.sh /usr/local/etc/rc.d/configd-*.sh /usr/local/etc/rc.d/datad-*.sh' system command=/dist/bin/sh -c '( /dist/bin/rm -f /var/log/* /var/log/*/* /var/cron/tabs/radar ; exit 0)' system command=/dist/usr/bin/touch /var/log/messages /var/log/security /var/log/auth.log /var/log/maillog /var/log/lpd-errs /var/log/xferlog /var/log/cron /var/log/debug.log /var/log/console.log /var/log/slip.log /var/log/ppp.log /var/log/all.log system # Install the ROS command=/dist/bin/sh -c 'if [ -e /dist/ros-install.sh ]; then /dist/ros-install.sh; fi' system # Root password command=/usr/bin/passwd system # Root's shell command=chsh -s /bin/csh system