update to fix run boot script problem. added chkconfig xcatpostinit1 off and other minor corrections.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9e8ebc7797
commit
0ca023a373
@ -135,15 +135,27 @@ ln -s /etc/init.d/xcatpostinit1 /etc/rc2.d/S84xcatpostinit1
|
||||
mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/xcatinstallpost#
|
||||
if [ "$RUNBOOTSCRIPTS" != "yes" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
#create the dskls post
|
||||
cat >/opt/xcat/xcatdsklspost << 'EOF'
|
||||
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/xcatdsklspost#
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatdsklspost
|
||||
|
||||
chkconfig --add xcatpostinit1
|
||||
|
||||
#only run the prebooot scripts here
|
||||
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /tmp/mypostscript`
|
||||
echo "$TMP" > /tmp/mypostscript
|
||||
|
@ -134,6 +134,13 @@ mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
# Install directory variable set by nodeset
|
||||
$INSTALLDIR/postscripts/xcatinstallpost
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinf
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
|
@ -133,6 +133,13 @@ mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
# Install directory variable set by nodeset
|
||||
$INSTALLDIR/postscripts/xcatinstallpost
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinf
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
|
@ -151,6 +151,13 @@ mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
# Install directory variable is set by nodeset
|
||||
$INSTALLDIR/postscripts/xcatinstallpost
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinf
|
||||
EOF
|
||||
# Change permissions
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
@ -147,6 +147,13 @@ mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
# Install directory variable is set by nodeset
|
||||
$INSTALLDIR/postscripts/xcatinstallpost
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinf
|
||||
EOF
|
||||
# Change permissions
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
@ -144,9 +144,18 @@ ln -s /etc/init.d/xcatpostinit1 /etc/rc2.d/S84xcatpostinit1
|
||||
mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/xcatinstallpost#
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinf
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
chkconfig --add xcatpostinit1
|
||||
|
||||
#create the dskls post
|
||||
cat >/opt/xcat/xcatdsklspost << 'EOF'
|
||||
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/xcatdsklspost#
|
||||
|
@ -145,6 +145,13 @@ ln -s /etc/init.d/xcatpostinit1 /etc/rc.d/rc5.d/S84xcatpostinit1
|
||||
mkdir -p /opt/xcat
|
||||
cat >/opt/xcat/xcatinstallpost << 'EOF'
|
||||
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/xcatinstallpost#
|
||||
if [ -f /xcatpost/mypostscript.post ]; then
|
||||
RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript.post |cut -d= -f2`
|
||||
fi
|
||||
if [ "$RUNBOOTSCRIPTS" != "'yes'" ]; then
|
||||
chkconfig xcatpostinit1 off
|
||||
fi
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfi
|
||||
EOF
|
||||
chmod 755 /opt/xcat/xcatinstallpost
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user