From 617de03d136c9ea7f3ff17e78e9367274d6febeb Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 21 Oct 2013 01:08:59 -0700 Subject: [PATCH] delete 127.0.1.1 from /etc/hosts on ubuntu compute node --- xCAT-server/share/xcat/install/scripts/post.ubuntu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/install/scripts/post.ubuntu b/xCAT-server/share/xcat/install/scripts/post.ubuntu index 70583feb4..eb64b7e4b 100644 --- a/xCAT-server/share/xcat/install/scripts/post.ubuntu +++ b/xCAT-server/share/xcat/install/scripts/post.ubuntu @@ -188,6 +188,10 @@ elif [[ -r /boot/grub/grub.cfg ]] ; then update-grub fi sed -i 's/\(deb.*security.*\)/#\1/' /etc/apt/sources.list +#iso does not contains source deb packages +sed -i 's/^\(\s*deb-src.*install.*\)$/#\1/g' /etc/apt/sources.list +#delete the 127.0.1.1 line from /etc/hosts +sed -i '/127.0.1.1/d' /etc/hosts updateflag.awk $MASTER 3002 cd / #rm -Rf /xcatpost