Disable non-dhcp resolv.conf
Fixes: bug #1119268 Change-Id: Icf7d420a31eb7a0cb46b2e59a4328f6b640deb57
This commit is contained in:
parent
f127e2f316
commit
ec06efc607
@ -44,12 +44,9 @@ if [ ! -d $STAGING_DIR/etc ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure dns (use same dns as dom0)
|
# Only support DHCP for now - don't support how different versions of Ubuntu handle resolv.conf
|
||||||
# but only when not precise
|
if [ "$MGT_IP" != "dhcp" ] && [ "$PUB_IP" != "dhcp" ]; then
|
||||||
if [ "$UBUNTU_INST_RELEASE" != "precise" ]; then
|
echo "Configuration without DHCP not supported"
|
||||||
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"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user