2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/genimage

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent 5f07d0f7f6
commit 8caa0f2290

View File

@ -648,7 +648,7 @@ if ($postinstall_filename) {
#delete the osimage attributes from environment variable
delete @ENV{qw(IMG_ARCH IMG_NAME IMG_OSVER IMG_KERNELVERSION IMG_PROFILE IMG_PKGLIST IMG_PKGDIR IMG_OTHERPKGLIST IMG_OTHERPKGDIR IMG_ROOTIMGDIR)};
}
# Default to the first kernel found in the install image if nothing specified explicitly.
@ -1036,7 +1036,7 @@ MAGENTA="\033[35m"
BROWN="\033[33m"
NORMAL=\$RESET
# This function is used to mount files/directories from the .statelite directory
# This function is used to mount files/directories from the .statelite directory
# over the root directory.
# This function is stolen from redhat
shell() {
@ -1079,10 +1079,10 @@ echo '
echo '
_________ ________________
___ __\\_ ___ \\ / _ \\__ ___/
\\ \\/ / \\ \\/ / /_\\ \\| |
> <\\ \\____/ | \\ |
/__/\\_ \\\\______ /\\____|__ /____|
\\/ \\/ \\/
\\ \\/ / \\ \\/ / /_\\ \\| |
> <\\ \\____/ | \\ |
/__/\\_ \\\\______ /\\____|__ /____|
\\/ \\/ \\/
'
echo -e "\$RESET"
}
@ -1193,8 +1193,8 @@ for i in `cat /proc/cmdline`; do
VALUE=`echo \$i |awk -F= '{print \$2}'`
xcatdebugmode=\$VALUE
fi
#if "nonodestatus" specified,do not update the nodestatus
#if "nonodestatus" specified,do not update the nodestatus
if [ "\$i" = 'nonodestatus' ]; then
NODESTATUS='n'
fi
@ -1276,7 +1276,7 @@ for i in `cat /proc/cmdline`; do
SERVER=`echo \$VALUE|awk -F/ '{print \$3}'`
ROOTDIR=`echo \$VALUE|awk -F/ '{for(i=4;i<=NF;i++) printf "/%s",\$i}'`
fi
# for NFS root
# for NFS root
elif [ "\$KEY" = 'NFSROOT' ]; then
NFSROOT=1
VALUE=`echo \$i |awk -F= '{print \$2}'`
@ -1361,7 +1361,7 @@ EOMS
fi
fi
# now we need to mount the rest of the system.
# now we need to mount the rest of the system.
if [ ! -e "\$NEWROOT/\$RWDIR" ]; then
echo ""
echo -e "\${RED}Hmmm... this NFS root directories doesn't have a /\$RWDIR directory for me to mount a rw filesystem. You'd better to create it... \${NORMAL}"
@ -1667,7 +1667,7 @@ EOMS
push @filestoadd, $_;
}
}
if ($arch =~ /x86_64/) {
push @filestoadd, "lib64/libnss_dns.so.2";