2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-12 13:18:48 +00:00
Files
xcat-core/xCAT-server/share/xcat/install/scripts/pre.pkvm3
Victor Hu 23e124ac2d Modify the getinstdisk to create a temporary file called /tmp/xcat.install_disk
so that it's easier for the admin who is debugging the install to know which files
are created by xCAT
2016-05-12 13:33:28 -04:00

19 lines
559 B
Plaintext
Executable File

#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/partitioning
echo "volgroup ibmpkvm_rootvg PV.01" >> /tmp/partitioning