From ec06efc607328bce9dc535be79e9539d5edec536 Mon Sep 17 00:00:00 2001 From: Mate Lakat Date: Fri, 1 Feb 2013 15:16:51 +0000 Subject: [PATCH] Disable non-dhcp resolv.conf Fixes: bug #1119268 Change-Id: Icf7d420a31eb7a0cb46b2e59a4328f6b640deb57 --- tools/xen/build_xva.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/xen/build_xva.sh b/tools/xen/build_xva.sh index 0e874cfe55..b0fd003d52 100755 --- a/tools/xen/build_xva.sh +++ b/tools/xen/build_xva.sh @@ -44,12 +44,9 @@ if [ ! -d $STAGING_DIR/etc ]; then exit 1 fi -# Configure dns (use same dns as dom0) -# but only when not precise -if [ "$UBUNTU_INST_RELEASE" != "precise" ]; then - cp /etc/resolv.conf $STAGING_DIR/etc/resolv.conf -elif [ "$MGT_IP" != "dhcp" ] && [ "$PUB_IP" != "dhcp" ]; then - echo "Configuration without DHCP not supported on Precise" +# Only support DHCP for now - don't support how different versions of Ubuntu handle resolv.conf +if [ "$MGT_IP" != "dhcp" ] && [ "$PUB_IP" != "dhcp" ]; then + echo "Configuration without DHCP not supported" exit 1 fi