corrected the issue that PBS cannot run in first boot after installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
293d1c0209
commit
36dda35ce0
@ -68,7 +68,7 @@ do
|
||||
sleep $RAND
|
||||
done
|
||||
echo "INSTALLDIR=$INSTALLDIR" >> /opt/xcat/xcatinfo
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
#echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
cd /xcatpost
|
||||
#gunzip xcatpost.tar.gz
|
||||
#tar -xvf xcatpost.tar
|
||||
|
@ -34,6 +34,9 @@ fi
|
||||
DHCP_TMP=`sed 's/\(DHCPINTERFACES=\)\(.*\)$/\1"\2"/' /xcatpost/mypostscript.post`
|
||||
echo "$DHCP_TMP" > /xcatpost/mypostscript.post
|
||||
|
||||
#mark that the first reboot after installation is finished
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
|
||||
CNS=`grep NODESTATUS= /xcatpost/mypostscript.post |awk -F = '{print $2}'`
|
||||
if [ -z "$CNS" ] || [ "$CNS" != "'0'" -a "$CNS" != "'N'" -a "$CNS" != "'n'" ]; then
|
||||
#update the node status during the postbootscript running
|
||||
|
@ -36,10 +36,8 @@ start)
|
||||
REBOOT=`grep 'REBOOT' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
fi
|
||||
# if the xcatdsklspost file exists and this is a reboot - run xcatdsklspost with a mode of 6
|
||||
if [ -r /opt/xcat/xcatdsklspost ]; then
|
||||
if [ "$REBOOT" = "TRUE" ]; then
|
||||
if [ "$REBOOT" = "TRUE" -a -r /opt/xcat/xcatdsklspost ]; then
|
||||
/opt/xcat/xcatdsklspost 6
|
||||
fi
|
||||
else
|
||||
# run /opt/xcat/xcatinstallpost
|
||||
if [ -r /opt/xcat/xcatinstallpost ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user