# New to RoboInst 1.1 and the 6.5.2 miniroot (installation tools) is the
#  ability to install older OS versions.
# This is an example of clean installing an IRIX 6.3 system.
# A selections file based upon an existing system would probably be
#  a better choice in the long run.
# NOTE that it is mandatory to install the latest XFS patch (patch3290
#  "XFS rollup #7 for IRIX 6.3" or its successor) and its prereq patches
#  during the RoboInst session, or the kernel will not be able to mount
#  the root filesystem!
# You must also install roboinst.sw.client last for a recent sash so that
#  the system is bootable.

version 1

# logs to an IP address, not a hostname
loghost  10.62.51.110

# repartition this
disksetup
partition systemdisk standard root /

preinst echo "poor man's nameservice: appending to miniroot hosts file..."
preinst echo '10.26.80.118 dist.my.domain dist' >> /etc/hosts 2>/dev/null
preinst echo '10.62.51.110 server.my.domain server' >> /etc/hosts 2>/dev/null

# Uncommenting the onerror line below causes inst to stop
# if there are any installation conflicts, and wait for
# you to manually make corrections.
#onerror wait

setenv BASE dist:/os/irix
inst from $BASE/irix-6.3-o2-10k
inst open $BASE/irix-6.3-apps-august-1997
inst open $BASE/onc3-nfs3-6.3
# patchsets may be better installed live...
#inst open $BASE/patchsets/44
#inst open $BASE/patchsets/60
# this XFS rollup patch needed for the kernel to mount the
#  miniroot-created filesystem
inst open $BASE/patches/patch3290/dist
# without this patch, the kernel will fail to link
inst open $BASE/patches/patch2973/dist
# this patch (3319) is also in patchset 44, so don't duplicate...
inst open $BASE/patches/patch3319/dist
inst keep *
inst install required
inst install eoe.*.gifts_perl* eoe.sw.termbase eoe.sw.usrshare
inst install eoe.*.nds compiler_eoe.sw32.lib eoe.sw.xfs eoe.sw.xlv
# needed for the kernel to link, but is not tagged "required":
inst install dmedia_eoe.sw.base
inst install default desktop_base x_eoe motif_eoe desktop_eoe 4Dwm
inst install default netscape_gold
inst install default nfs onc3_eoe
inst keep *.books
inst install applicablepatches
inst install prereqs
inst go
inst from $BASE/misc/roboinst
inst install default roboinst
inst go
inst set rqs_task rqsread

# minimum configure
# can't use the perl-based post configure since the perl supplied with
#  6.3 is too old.
postinst echo "starting trivial post configuration"
postinst echo 'host1.my.domain' > /root/etc/sys_id
postinst grep -v host1 /root/etc/hosts > /root/etc/hosts-N
postinst echo '10.62.51.133	host1.my.domain host1' >> /root/etc/hosts-N
postinst mv /root/etc/hosts-N /root/etc/hosts
postinst if ! test -f /root/etc/resolv.conf; then
postinst    echo "domain my.domain" > /root/etc/resolv.conf
postinst    echo "nameserver 10.62.51.3" >> /root/etc/resolv.conf
postinst    echo "nameserver 10.62.51.2" >> /root/etc/resolv.conf
postinst fi
postinst echo "my.domain" > /root/var/yp/ypdomain
postinst if ! test -f /root/etc/config/ifconfig-1.options; then
postinst    echo 'netmask 0xffffff00' > /root/etc/config/ifconfig-1.options
postinst fi
postinst chroot /root /etc/chkconfig -f network on
postinst chroot /root /etc/chkconfig -f autoconfig_ipaddress off
postinst chroot /root /etc/chkconfig -f firsttimeprograms off
postinst chroot /root /etc/chkconfig -f yp on
postinst chroot /root /etc/chkconfig -f nds on
#
# This is a minimal set of selections and patches appropriate for a basic
# system. Tested on an R5000 O2.
