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

[rhel6-branch 1/4] On PPC64 /var/log exists already.



And 7ecfc716475b89c43808962c757dfd9d775e7c76 will cause a traceback there.

Related: rhbz#636570
---
 anaconda |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index 417e114..0f9f88e 100755
--- a/anaconda
+++ b/anaconda
@@ -679,7 +679,10 @@ if __name__ == "__main__":
 
     setupEnvironment()
     # make sure we have /var/log soon, some programs fail to start without it
-    os.mkdir("/var/log", 0755)
+    try:
+        os.mkdir("/var/log", 0755)
+    except OSError as e:
+        pass
 
     pidfile = open("/var/run/anaconda.pid", "w")
     pidfile.write("%s\n" % (os.getpid(),))
-- 
1.7.3.3


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