summaryrefslogtreecommitdiffstats
path: root/network.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-10-14 10:09:41 -0400
committerChris Lumens <clumens@redhat.com>2008-10-14 10:09:41 -0400
commit66122a00d36af3dbea1581fe7990be0053b885ef (patch)
treebdd7f048d28b36c3b417af5d52911403459c46bd /network.py
parent13c12ba4cc12d5034ef1d164e34974072a917ba1 (diff)
downloadanaconda-66122a00d36af3dbea1581fe7990be0053b885ef.tar.gz
anaconda-66122a00d36af3dbea1581fe7990be0053b885ef.tar.xz
anaconda-66122a00d36af3dbea1581fe7990be0053b885ef.zip
Move persistent network udev rule to under /etc (#464844).
Diffstat (limited to 'network.py')
-rw-r--r--network.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/network.py b/network.py
index 778798929..3cbffa183 100644
--- a/network.py
+++ b/network.py
@@ -660,12 +660,12 @@ class Network:
f.close()
shutil.move(newresolv, destresolv)
- # /lib/udev/rules.d/70-persistent-net.rules
+ # /etc/udev/rules.d/70-persistent-net.rules
if not instPath == '':
- if not os.path.isdir("%s/lib/udev/rules.d" %(instPath,)):
- iutil.mkdirChain("%s/lib/udev/rules.d" %(instPath,))
+ if not os.path.isdir("%s/etc/udev/rules.d" %(instPath,)):
+ iutil.mkdirChain("%s/etc/udev/rules.d" %(instPath,))
- f = open(instPath + "/lib/udev/rules.d/70-persistent-net.rules", "w")
+ f = open(instPath + "/etc/udev/rules.d/70-persistent-net.rules", "w")
f.write("""
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.