# clean the system, and restore from backups.
# You may repeat the steps for additional disks
# The example shows using Networker,
#  substitute other backup tools as appropriate.
# Make sure that /stand/sash is in the backup, or copy it as part of /custom
#  or the resultant system may not boot

version 1

# logging to monitoring host. Note: use IP address, not hostname!
loghost  10.62.51.110

# WARNING: Preparing to wipe the disk!
disksetup
partition dks0d1s0 standard root /

# the poor-man's miniroot nameserver
init echo "appending to miniroot hosts file..."
init echo "10.26.80.118	dist.domain.com dist" >> /etc/hosts
init echo "10.62.51.133	urthr.domain.com urthr" >> /etc/hosts
init echo "10.62.37.94	tapeman1.domain.com tapeman1" >> /etc/hosts

# restore the root disk
preinst echo starting to recover filesystem: `date`
preinst recover -a -f -q -c `hostname` -s tapeman1 -d /root /
preinst echo finished recovering filesystem: `date`

# make sure to install sash
postinst dvhtool -v creat /root/stand/sash sash /dev/rdsk/dks0d1vh
