/web/elkner/public_html/s11/zinstall/etc/zskeleton.kshlib
#!/bin/ksh93

SDIR="$( cd ${ dirname $0; }; print -n "$PWD" )"

#. /web/elkner/public_html/s11/zinstall/etc/zinstall.kshlib || exit 1
. $SDIR/etc/zinstall.kshlib || exit 1

# Your current working directory (CWD) is now $SDIR

#	DATADIR[pool1]=( pool=rpool/$ZNAME/pool1 z_pool=pool1 )		# dataset
#	DATADIR[http]=( pool=pool1/$ZNAME/pkg z_dir=/data/httpd )	# zfs mount
#	DATADIR[vim]=( dir=/usr/share/vim/vim73 \
#		z_dir=/usr/share/vim/vim73 mopts="ro nodevices" )		# lofs mount

checkNIC

checkIP

checkDatadirsPre

checkZonePathes

createTempdir

prepareManifest

addPkg install //lnf/primary-admin

prepareProfiles

createZoneConfig

installZone

#addPrimaryAdministrator

bootZone

checkDatadirsPost

customizeRunningZone

rebootZone
#haltZone
