# Clean install and configure a small server.
# Server admins usually prefer to split up the "root" filesystem
# for safety and manage-ability.
# Also shows partitioning based upon root disk size.

version 1

# logging to remote host -- use IP address, not hostname!
loghost  10.62.51.110

# customizing partitions.
#  WARNING will wipe the disk!

disksetup
partition dks0d1s0 standard root
if [ "$SGI_CAPACITY" -lt 3000000 ] then
    partition dks0d1s1 followspart8:150000 swap swap
    partition dks0d1s0 followspart1:800000 xfs/512 /
    partition dks0d1s6 followspart0:600000 xfs/4096 /var
    partition dks0d1s7 followspart6:remainder xfs/4096 /tmp
else
  if [ "$SGI_CAPACITY" -lt 6000000 ] then
    partition dks0d1s1 followspart8:300000 swap swap
    partition dks0d1s0 followspart1:1800000 xfs/512 /
    partition dks0d1s6 followspart0:1400000 xfs/4096 /var
    partition dks0d1s7 followspart6:remainder xfs/4096 /tmp
  else
    partition dks0d1s1 followspart8:400000 swap swap
    partition dks0d1s0 followspart1:3000000 xfs/512 /
    partition dks0d1s6 followspart0:2800000 xfs/4096 /var
    partition dks0d1s7 followspart6:remainder xfs/4096 /tmp
  endif
endif
partition dks0d3s7 standard option /home

# note that due to some early boot-time dependencies with /var,
# you may have to play some tricks (like booting to single first)
# to get it to boot successfully with a seperate /var partition.

# poor-man's miniroot nameserver
init echo "appending to miniroot hosts file..."
init cat /custom/hosts >> /etc/hosts 2>/dev/null

# install basic system, with server-ish stuff: accounting, quotas, acls, etc
# obviously, you can add your own stuff to install...
setenv DIST dist:/os/irix/6.5
inst from $DIST/irix_foundation1
inst from $DIST/irix_foundation2
inst open $DIST/irix_apps
inst open $DIST/nfs
inst open $DIST/roboinst
inst keep *
inst install required
inst install default *_eoe *_base netscape* nfs imgtools 4Dwm print
inst install default webviewer media_warehouse pcp_eoe 
inst install eoe.*.nds eoe.*.gifts_perl* impr_base *.man *.books
inst install eoe.sw.acct eoe.sw.acl eoe.sw.audit eoe.sw.cpr eoe.sw.dmi
inst install eoe.sw.ipgate eoe.sw.miser eoe.sw.named eoe.sw.netman
inst install eoe.sw.quotas eoe.sw.xlv
inst install default roboinst
inst keep *.sw64* *dev
inst install prereqs
# If you don't have all the replacement or prereq products,
# or some of the rules are not correct, you may have conflicts.
#  you can try variations of the following options,
#  but note that just "keep conflicting" can be dangerous
#inst keep conflicting prod1 prod2
#inst install required
inst go

postinst echo "could perform additional non-inst installation here"

# configure it before rebooting.
postinst /custom/mypostinst
