From 0c0441365b1e0f0e9a8709ea99d01fb1e831c974 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot --- xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot index ac45f2f6c..ceb6bbd8d 100755 --- a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot +++ b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcatroot @@ -50,7 +50,7 @@ if [ ! -z "$imgurl" ]; then ROOTDIR=$SERVER SERVER=${SERVER%%/*} SERVER=${SERVER%:} - ROOTDIR=/${ROOTDIR#*/} + ROOTDIR=/${ROOTDIR#*/} fi fi #echo 0 > /proc/sys/vm/zone_reclaim_mode #Avoid kernel bug @@ -123,7 +123,7 @@ elif [ -r /rootimg.tar.gz ] || [ -r /rootimg.tar.xz ]; then echo Done elif [ -r /rootimg-statelite.gz ]; then echo Setting up RAM-root tmpfs for statelite mode. - + if [ -z $rootlimit];then mount -t tmpfs -o mode=755 rootfs $NEWROOT else @@ -139,7 +139,7 @@ elif [ -r /rootimg-statelite.gz ]; then fi echo Done # then, the statelite staffs will be processed - echo Setting up Statelite + echo Setting up Statelite modprobe nfs MAXTRIES=7 ITER=0 @@ -312,7 +312,7 @@ if [ -z $STATEMNT ]; then if [ ! -z "$MACX" ] && [ ! -z "$ETHX" ]; then if [ ! -e $NEWROOT/etc/sysconfig/network/ifcfg-$ETHX ]; then - [ "$xcatdebugmode" > "0" ] && logger -t xcat -p debug "creating $NEWROOT/etc/sysconfig/network-scripts/ifcfg-$ETHX" + [ "$xcatdebugmode" > "0" ] && logger -t xcat -p debug "creating $NEWROOT/etc/sysconfig/network-scripts/ifcfg-$ETHX" touch $NEWROOT/etc/sysconfig/network/ifcfg-$ETHX fi [ "$xcatdebugmode" > "0" ] && logger -t xcat -p debug "writing $NEWROOT/etc/sysconfig/network-scripts/ifcfg-$ETHX: DEVICE=$ETHX;BOOTPROTO=dhcp;HWADDR=$MACX;ONBOOT=yes"