From 0989d3277091680b61c4e9e95626cb37dc8b385d Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 18 Nov 2013 23:04:26 -0800 Subject: [PATCH] fix defect #3900 [pcm] Provision RHEL 6.4 node failed after associate os distro update to osimage --- xCAT-server/share/xcat/install/scripts/pre.rh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/pre.rh b/xCAT-server/share/xcat/install/scripts/pre.rh index 8fc78775f..450171a27 100644 --- a/xCAT-server/share/xcat/install/scripts/pre.rh +++ b/xCAT-server/share/xcat/install/scripts/pre.rh @@ -221,6 +221,10 @@ echo "part / --size 1 --grow --ondisk $instdisk --fstype $FSTYPE" >> /tmp/partit # The following code is to generate the repository for the installation cat /proc/cmdline -export nextserver=`cat /proc/cmdline | grep http | head -n 1 | cut -d / -f 3 | cut -d : -f 1` +NEXTSERVER=`cat /proc/cmdline | grep http | head -n 1` +NEXTSERVER=${NEXTSERVER#*http://} +NEXTSERVER=${NEXTSERVER%%:*} + +export nextserver=$NEXTSERVER #INSTALL_SOURCES_IN_PRE#