#######################################################################
# Copyright (c) 1997-2004 Sun Microsystems, Inc. All Rights Reserved.
#
# SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
# THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
# TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
# PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
# ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
# DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
#
#######################################################################
## Source:               master_build_info.txt
## Application Name:     IT S9 Migration Tools
#
## Author:       BG
## Date Created: 13-JAN-2003
#
## General Description(Purpose): 
# 	Overview of steps involved to created current flash image for
#       solaris 9 migrations.
#
# 17-JUL-2003  BG   Modified URL for NSGswat, SUNWjass
#                                  Added audit step, copy sites
# 04-APR-2003  BG   Added shelltool,cmdtool and new flash 
# 13-MAY-2003  BG   Changed SENSswat 4.3.3 to NSGswat v5.0.0
# 04-APR-2003  BG   Added shelltool,cmdtool and new flash 
# 13-JAN-2003  BG   Created
#
#
#######################################################################
. Build Solaris 9 12/02 system with package cluster defined
  in master_build_components.txt under "solaris 9 profile" section.

. Install additional packages.
  Here is the sample packages installed.

    SUNWjass  4.0.0,Solaris Security Toolkit 

    SUNWvts   5.1,REV=08.02.07.25,OE=5.8,5.9 
    SUNWvtsmn 5.1,REV=08.02.07.25,OE=5.8,5.9 
    SUNWvtsx  5.1,REV=08.02.07.25,OE=5.8,5.9
    SUNWstade 2.2.00.03                      
    SUNWsan   1.0                            


    VRTSvlic  3.00.007d                     
    VRTSvxvm  3.5,REV=06.21.2002.23.14     
    VRTSob    3.0.2.261                     
    VRTSvmman 3.5,REV=06.21.2002.23.14       

.   Install SUNmc     3.0   Packages  
       SUNWesae  SUNWesagt SUNWescom SUNWesmod SUNWesamn 
       SUNWesmcp SUNWesasm SUNWedag  SUNWedcom SUNWessta 
       SUNWedagx SUNWeswga PSCbasic  SUNWcst SUNWecst 

.   Install additional SUNmc package not picked up by the installer
       SUNWsycfd 

.   Replace /var/opt/SUNWsymon/cfg/domain-config.x file to have generic entries 
    (See master_build_components.txt under domain-config.x section) 

.   Replace /var/opt/SUNWcst/cst.pref to have generic entries 
    This is needed when you have cst installed
    (See master_build_components.txt under cst.pref section) 

.   Comment out SunMC aliases in /etc/aliases

.   Retrieve patchdiag-1.0.4 and latest patchdiag.xref file from sunsolve.
    Extract to /var/tmp and run patchdiag -l to obtain list of patches to install.

.   Install patches from above output.
      Installation of 112392-04 fails.  Needed to temporarily rename:
         /var/sadm/pkgs/VRTSvxvm/install/space
      Install the patches and rename tempfile back to space.

.   See master_build_components.txt 
    "showrev -p section"     complete list of patches installed.
    "pkginfo section"        complete list of packages installed.

. changed /files references in /etc/vfstab to /home
  (This is needed because local NIS uses /home in automounter)

. modify /etc/auto_master to exclude /home

. Uncomment CONSOLE= from /etc/default/login (If not already done)

. Copy cmdtool from Solaris8 to /usr/openwin/bin
  ln -s ./cmdtool shelltool
  copy ITSM-PAR created cmdtool.README to /usr/openwin/bin
  (See master_build_components.txt under cmdtool section)

. Create audit file /etc/..FLASH-CREATION with the following info 
    RELEASE=Solaris 9 12/02 s9s_u2wos_10 SPARC   (From /etc/release)
    PATCH_XREF_DATE=Jul/17/03                    (From patchdiag.xref)
    DATE=20030721_145628_GMT                 

. mv /etc/rc2.d/S74autofs /etc/rc2.d/_S74autofs
. Reboot system.
. mv /etc/rc2.d/_S74autofs /etc/rc2.d/S74autofs

. cp /dev/null /var/adm/messages
  cp /dev/null /var/adm/wtmpx
  cp /dev/null /var/adm/sulog
  cp /dev/null /var/adm/lastlog
  cp /dev/null /var/adm/utmpx
  rm /var/adm/messages.*

. ypcat -k auto.master | awk '{print $1}' | grep -v /net and rmdir them.
  rmdir /files

. Save undo.Z files from /var/sadm/pkg/... and remove the undo.Z files to 
  free up approx 200Mb of space.

. Start the flar process
  NOTE: This is example only.
     mv /etc/rc2.d/_S74autofs /etc/rc2.d/S74autofs 
     mkdir /mnt/flash
     mount illusion:/files2/flash /mnt/flash
     flarcreate -n "Solaris9(U2) Sun4u ITSM Release 1.3.4 21-JUL-2003" -S \
       -c -x /mnt/flash /mnt/flash/s9_1202_sparc_sun4u_20030721.flar
     WARNING:  fdo: Ignoring duplicate filter entry. Choosen entry will be: /mnt/flash -
     current filter settings
     Creating the archive...

. Copy Flash archive, undo.Z.tar and compressed patches to temporary locations
  NOTE: This is example only.
    ralph.east:/data4/flash/
    spstand.central:/backupPIT/flash/
