[PATCH 8/9] Don't try to unlink a config file that isn't there.

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

 



---
 pyanaconda/storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index ca46a8d..1e17a46 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1733,7 +1733,7 @@ class DeviceTree(object):
                 except (IOError, OSError) as e:
                     msg = str(e)
                     log.error("failed to %s of %s: %s" % (op, cfg, msg))
-            elif restore:
+            elif restore and os.access(cfg, os.W_OK):
                 # remove the config since we created it
                 log.info("removing anaconda-created %s" % cfg)
                 try:
-- 
1.7.3.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