From 7a62794c0f1335cafea2af30639d6b20d10cf422 Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 14 Jan 2013 07:48:09 +0000 Subject: [PATCH] =?UTF-8?q?make=20postbootscripts=20work=20on=20sles11=20d?= =?UTF-8?q?iskfull=20installation=EF=BC=8Cand=20allow=20the=20admin=20to?= =?UTF-8?q?=20specify=20RUNBOOTSCRIPTS=3Dyes=20which=20will=20trigger=20th?= =?UTF-8?q?e=20post=20boot=20scripts=20on=20a=20reboot=20of=20disk=20full?= =?UTF-8?q?=20nodes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.xcat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index aee59812f..e5d2d962f 100644 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -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