defect 2983699: postscript otherpkgs should not do anything when netboot to statelite

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-04-08 10:06:55 +00:00
parent 270a784f1c
commit eaaa0313ee
2 changed files with 7 additions and 2 deletions

View File

@ -25,9 +25,11 @@
# do nothing for diskless deployment case because it is done in the image already
if [[ $UPDATENODE -ne 1 ]]; then
if [ "$NODESETSTATE" = "netboot" -o \
"$NODESETSTATE" = "statelite" -o \
"$NODESETSTATE" = "diskless" -o \
"$NODESETSTATE" = "dataless" ]
then
echo " Did not install any extra rpms."
exit 0
fi
fi

View File

@ -9,11 +9,13 @@
# do nothing when UPDATENODE=1 because it is done from the top down
if [[ $UPDATENODE -eq 1 ]]; then
echo " Did not sync any files."
exit 0
fi
#do nothing id there is no sync file template for the node
if [[ $NOSYNCFILES -eq 1 ]]; then
echo " Did not sync any files."
logger -t xCAT "$0: there is no sync file template for the node"
exit 0
fi
@ -23,8 +25,9 @@ if [ "$NODESETSTATE" = "netboot" -o \
"$NODESETSTATE" = "diskless" -o \
"$NODESETSTATE" = "dataless" ]
then
logger -t xCAT "$0: the node set state is $NODESETSTATE"
exit 0
echo " Did not sync any files."
logger -t xCAT "$0: the node set state is $NODESETSTATE"
exit 0
fi