# Create Boot Environment

# Here, we define a handful of variables and then call the sol.sh
# script, which will create a small partition on the client's disk,
# push the Solaris multiboot program and miniroot down, and configure
# the GRUB menu.lst.
#
# In order to use this script, the following variables must be defined:
# "dist", "nfsmedia", "sysidcfg", and "jumpstart".  These are described
# below.
#
# The multiboot program and miniroot are pulled from the deployment
# server (DS).  The "dist" variable controls which multiboot/miniroot is
# used.  sol.sh will look for "multiboot" and "x86.miniroot" in the
# "...\lib\osdist\${dist}" directory on the DS.
#
# sol.sh will configure the GRUB menu.lst so that the default selection
# will pass to Solaris those parameters that are necessary to initiate
# an automated JumpStart installation.  This is controlled by the following
# variables:
#
#    nfsmedia  Specifies an NFS path to the Solaris media (ie. the directory
#              specified to the create_install_server and add_to_install_server
#              scripts).
#
#    sysidcfg   Specifies an NFS path to the sysidcfg(4) file to be used.
#
#    jumpstart  Specifies an NFS path to the JumpStart profile directory to be
#               used.
#
# The variables are formally defined below.  They should be modified to
# fit the target environment.
#

# dist specifies the name of the OS distribution as it exists on the
# deployment server.  In this example, "sol10_0106" might refer to
# the Solaris 10 1/06 release.
#
export dist=sol10_0106

# The IP address of the jumpstart/media/sysidcfg server.
# This is just a shortcut used to define other variables in
# this script.  The sol.sh script does not consume this variable.
#
jssip=10.10.10.10

# nfsmedia specifies the NFS path to the Solaris install media.
# sol.sh uses the value of this variable to define the "install_media"
# boot parameter.
#
# This path must map to the directory that was given to
# setup_install_server(1M).
#
# In this example, the media has been copied to a directory with
# the same name as the "dist" on the DS.
#
export nfsmedia=${jssip}:/export/home/install/${dist}

# sysidcfg specifies the NFS path to the directory containing
# the sysidcfg file (which specifies various config for the new
# installation (root pw, network params, timezone, etc).
# sol.sh uses the value of this variable to define the "sysid_config"
# boot parameter.
#
# In this case, a directory has been specified, and this directory
# contains the "sysidcfg" file that is to be used.  It may also be possible
# to specify a tar file here (consult Sun documentation).
#
export sysidcfg=${jssip}:/jumpstart

# jumpstart specifies the NFS path to the jumpstart config directory.
# sol.sh uses the value of this variable to define the "install_config"
# boot parameter.  Solaris will look for the rules file and JumpStart
# profiles in this location.
#
export jumpstart=${jssip}:/jumpstart

# Other options.  sol.sh will append any options specified here to
# the GRUB "kernel" line.
#
# In this example, we instruct HPQnetstrategy to configure the network
# using DHCP on the first interface that is able to obtain an address.
# A specific interface may be specified here instead of "any", such as
# "bge0".
#
export otheroptions=",netstrategy=any:dhcp"


/mnt/ds/lib/bin32/linux/sol.sh
