make postbootscripts work on sles11 diskfull installation,and allow the admin to specify RUNBOOTSCRIPTS=yes which will trigger the post boot scripts on a reboot of disk full nodes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9aa954458f
commit
7a62794c0f
@ -167,7 +167,11 @@ fi
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
chkconfig --add xcatpostinit1
|
||||
export OSVER=#TABLE:nodetype:THISNODE:os#
|
||||
if [[ $OSVER == sles* ]]; then
|
||||
/sbin/insserv -p /etc/init.d xcatpostinit1
|
||||
fi
|
||||
#chkconfig --add xcatpostinit1
|
||||
chkconfig xcatpostinit1 on
|
||||
|
||||
#create the dskls post
|
||||
@ -182,7 +186,6 @@ echo "$TMP" > /xcatpost/mypostscript
|
||||
|
||||
/xcatpost/mypostscript
|
||||
export NODE=#TABLE:nodelist:THISNODE:node#
|
||||
export OSVER=#TABLE:nodetype:THISNODE:os#
|
||||
export ARCH=#TABLE:nodetype:THISNODE:arch#
|
||||
addsiteyum
|
||||
sed -i 's/^serial/#serial/' /boot/grub/grub.conf
|
||||
|
Loading…
Reference in New Issue
Block a user