The new_install script only prompts 1 time.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@10806 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2011-10-18 01:22:29 +00:00
parent 4d944e385a
commit eec0b38a2d
@@ -16,14 +16,7 @@ if [ $OS != "AIX" ]; then
if [ $NODESETSTATE == "install" ] || [ $NODESETSTATE == "boot" ]; then
# Being run from a stateful install postscript
if [ -n "$upc_script" ] ; then
# UPC prompts for a minimum of three questions
# on compute nodes and four on login nodes.
# You may need modify here accordingly.
(echo yes
sleep 5
echo 1
sleep 5
echo yes) | $upc_script
echo 1 | $upc_script
fi
fi
@@ -31,14 +24,7 @@ if [ $OS != "AIX" ]; then
# Being called from <image>.postinstall script
# Assume we are on the same machine
if [ -n "$upc_script" ] ; then
# UPC prompts for a minimum of three questions
# on compute nodes and four on login nodes.
# You may need modify here accordingly.
(echo yes
sleep 5
echo 1
sleep 5
echo yes) | chroot $installroot /$upc_script
echo 1 | chroot $installroot /$upc_script
fi
fi
fi