#
# Select a zone
# Add the --utc switch if your hardware clock is set to GMT
#
#timezone US/Hawaii
#timezone US/Pacific
#timezone US/Mountain
#timezone US/Central
#timezone US/Eastern
timezone --utc "#TABLE:site:key=timezone:value#"

#
# Don't do X
#
#skipx


#
# To generate an encrypted root password use:
#
# perl -e 'print crypt("blah","Xa") . "\n";'p
# openssl passwd -apr1 -salt xxxxxxxx password
#
# where "blah" is your root password.
#
rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password#

#the --devicename must specify right now, but without network command, it can also work, so we delete it.
#network --bootproto dhcp



#XCAT_PARTITION_START#
%include /tmp/partitionfile
#XCAT_PARTITION_END#

%pre
{
echo "Running Automated Network Pre-Installation script..."
#add the code to determine the disk to partition here
#default is /dev/sda
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.pkvm3#
} >>/tmp/pre-install.log 2>&1
%end

%post
mkdir -p /var/log/xcat/
{
cat >> /var/log/xcat/xcat.log << "EOF"
%include /tmp/pre-install.log
EOF
echo "Running Automated Network Post-Installation script..."
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat#
} >>/var/log/xcat/xcat.log 2>&1
%end

