mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-03 07:55:17 +00:00
dnsfix: don't run it in a Hyper-V VM
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
c6c01019c4
commit
59f25b9c71
@ -10,7 +10,9 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ebegin "Testing DNS resolution"
|
[ -d /sys/bus/vmbus ] && exit 0
|
||||||
|
|
||||||
|
ebegin "Testing DNS resolution"
|
||||||
|
|
||||||
ifconfig eth0 2>1 >/dev/null && \
|
ifconfig eth0 2>1 >/dev/null && \
|
||||||
(dig localhost 2>&1 > /dev/null || printf "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > /etc/resolv.conf)
|
(dig localhost 2>&1 > /dev/null || printf "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > /etc/resolv.conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user