[PATCH 2/7] Do not copy over 70-persistent.rules if instPath is '' (#527707)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 network.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index eaef714..a79d584 100644
--- a/network.py
+++ b/network.py
@@ -730,7 +730,7 @@ class Network:
             if not os.path.isdir("%s/etc/udev/rules.d" %(instPath,)):
                 iutil.mkdirChain("%s/etc/udev/rules.d" %(instPath,))
 
-            if os.path.isfile(rules):
+            if os.path.isfile(rules) and rules != destRules:
                 shutil.copy(rules, destRules)
             else:
                 f = open(destRules, "w")
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux