2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-23 06:25:38 +00:00

Remove trailing spaces in file xCAT-client/bin/xcatchroot

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent 3f85add4a6
commit a3a169ba4d

View File

@ -3,16 +3,16 @@
#(C)IBM Corp
################################################################
# Usage:
# xcatchroot -h
# xcatchroot -h
# xcatchroot [-v] -i osimage cmd_string
#
#
# WARNING:
# Be very careful when using this script!!! Make sure you are
# Be very careful when using this script!!! Make sure you are
# very clear about exactly what you are changing and what effect
# it will have.
#
# As a precaution it is advisable to make a copy of the original
# As a precaution it is advisable to make a copy of the original
# spot in case your changes wind up corrupting the image.
#
# Note:
@ -24,18 +24,18 @@
# modification.
#
# In the bosboot code, there is a check for the creation of a boot
# image; if the image creation is anything other than disk, the
# image; if the image creation is anything other than disk, the
# odm values are not picked up. You will have to confirm that
# the bosboot command in your spot has the check removed.
#
# Edit the bosboot command contained in the spot (save a backup).
# Edit the bosboot command contained in the spot (save a backup).
# (ex. "vi <path_to_spotName>/usr/sbin/bosboot"). Search for
# "zap it as". The next line checks to see if the
# device prefix is "hdisk". Comment out the line and the
# corresponding "fi" which ends the "if" statement. Now this
# code will always execute. Save changes.
#
# Note: Always run the NIM check operation after you are done updating
# Note: Always run the NIM check operation after you are done updating
# your spot.
#
# nim -Fo check spotName
@ -95,7 +95,7 @@ do
case ${z} in
h) echo $usage
exit 0
exit 0
;;
i) # xCAT osimage name
@ -177,10 +177,10 @@ if ${LSNIM} $spot >/dev/null ; then
then
echo "Running command: ${LSNIM} -a location $spotObj | ${AWK} '/location/ {print $3}'\n"
fi
location=`${LSNIM} -a location $spotObj | ${AWK} '/location/ {print $3}'`
location=`${LSNIM} -a location $spotObj | ${AWK} '/location/ {print $3}'`
else
echo "ERROR: Cannot use chroot with remote resources $spot."
echo "ERROR: Cannot use chroot with remote resources $spot."
echo "xcatchroot: ERROR: Cannot use chroot with remote resources $spot." | logger -t xcat -p local4.err
exit 1
fi