mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-25 12:40:21 +00:00
58 lines
1.0 KiB
Cheetah
58 lines
1.0 KiB
Cheetah
#
|
|
# 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/partitioning
|
|
#XCAT_PARTITION_END#
|
|
|
|
%pre
|
|
{
|
|
set -x
|
|
touch "/startpre"
|
|
#add the code to determine the disk to partition here
|
|
#default is /dev/sda
|
|
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.pkvm3#
|
|
} >>/tmp/prelog 2>&1
|
|
%end
|
|
|
|
%post
|
|
touch "/startpost"
|
|
|
|
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat#
|
|
touch "/inpost"
|
|
|
|
#sleep 1000000
|
|
|
|
|
|
%end
|
|
|