mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +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
68af3a7c22
commit
4189cffeee
@ -10,7 +10,9 @@ depend()
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "Testing DNS resolution"
|
||||
[ -d /sys/bus/vmbus ] && exit 0
|
||||
|
||||
ebegin "Testing DNS resolution"
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user