2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-19 09:40:21 +00:00

issue 1493, we made a change that include the updateflag from /install/postscripts/updateflag.awk. But the shebang in /install/postscripts/updateflag.awk points to the /usr/bin/awk which does not exist in sles11.x installer. This fix is to make a link to the installer shipped awk.

This commit is contained in:
wangxiaopeng
2016-07-07 03:52:01 -04:00
parent e06a7c6c36
commit f66297abc5
2 changed files with 10 additions and 6 deletions

View File

@@ -22,19 +22,21 @@ fi
AWK=`find / -name awk | head -1`
#old awk /mounts/instsys/bin/awk -f
if [ ! -e /usr/bin/awk ]; then
ln -s $AWK /usr/bin/awk
fi
XCATDPORT=#TABLE:site:key=xcatiport:value#
XCATDHOST="#XCATVAR:XCATMASTER#"
(cat >/tmp/updateflag.awk << 'EOF'
(cat >/tmp/updateflag << 'EOF'
#INCLUDE:#TABLE:site:key=installdir:value#/postscripts/updateflag.awk#
EOF
) >/tmp/updateflag.awk
) >/tmp/updateflag
chmod 755 /tmp/updateflag.awk
chmod 755 /tmp/updateflag
/tmp/updateflag.awk $XCATDHOST $XCATDPORT
/tmp/updateflag $XCATDHOST $XCATDPORT
export PRINIC=#TABLEBLANKOKAY:noderes:THISNODE:primarynic#
if [ "$PRINIC" == "mac" ]

View File

@@ -18,7 +18,9 @@ fi
AWK=`find / -name awk | tail -1`
#old awk /mounts/instsys/bin/awk -f
if [ ! -e /usr/bin/awk ]; then
ln -s $AWK /usr/bin/awk
fi
XCATDPORT=#TABLE:site:key=xcatiport:value#
XCATDHOST="#XCATVAR:XCATMASTER#"