summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.py b/network.py
index 19dfecdba..e7392cc09 100644
--- a/network.py
+++ b/network.py
@@ -657,7 +657,7 @@ class Network:
self.domains = [domainname]
# /etc/resolv.conf
- if os.path.isfile('/etc/resolv.conf'):
+ if os.path.isfile('/etc/resolv.conf') and instPath != '':
destresolv = "%s/etc/resolv.conf" % (instPath,)
shutil.copy('/etc/resolv.conf', destresolv)
elif (self.domains != ['localdomain'] and self.domains) or \