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

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

 



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

_______________________________________________
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