mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-24 12:42:05 +00:00
30 lines
865 B
Plaintext
Executable File
30 lines
865 B
Plaintext
Executable File
export XCATDEBUGMODE="#TABLEBLANKOKAY:site:key=xcatdebugmode:value#"
|
|
if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then
|
|
set -x
|
|
fi
|
|
|
|
if [ "$XCATDEBUGMODE" = "2" ]; then
|
|
echo 'root:cluster' | chpasswd
|
|
fi
|
|
|
|
#find first available block device (sda or vda likely)
|
|
#TODO: pick a likely non-SAN target if possible
|
|
|
|
shopt -s nullglob
|
|
|
|
#
|
|
# The getinstdisk script is common for RHEL/SLES/PowerKVM/Ubuntu.
|
|
# It will attempt to select the install disk and write the selection to /tmp/xcat.install_disk
|
|
#
|
|
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/getinstdisk#
|
|
if [ -e "/tmp/xcat.install_disk" ]; then
|
|
instdisk=`cat /tmp/xcat.install_disk`
|
|
fi
|
|
|
|
echo "part PV.01 --ondisk=$instdisk" >> /tmp/partitionfile
|
|
echo "volgroup ibmpkvm_rootvg PV.01" >> /tmp/partitionfile
|
|
|
|
if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then
|
|
set +x
|
|
fi
|