[rhel6-branch 3/3] mpath: make sure /var/log exists exists early.

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

 



without this patch, brcm_iscsiuio does not start with interactive
kickstart and so I can't use bnx2i iscsi offload card to test mpath on a
common hardware.

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

diff --git a/anaconda b/anaconda
index e6b8127..a3f15e6 100755
--- a/anaconda
+++ b/anaconda
@@ -459,7 +459,6 @@ def startSsh():
         return
 
     if not fork_orphan():
-        os.mkdir("/var/log", 0755)
         os.open("/var/log/lastlog", os.O_RDWR | os.O_CREAT, 0644)
         ssh_keys = {
             'rsa1':'ssh_host_key',
@@ -679,6 +678,8 @@ if __name__ == "__main__":
     signal.signal(signal.SIGSEGV, isys.handleSegv)
 
     setupEnvironment()
+    # make sure we have /var/log soon, some programs fail to start without it
+    os.mkdir("/var/log", 0755)
 
     pidfile = open("/var/run/anaconda.pid", "w")
     pidfile.write("%s\n" % (os.getpid(),))
-- 
1.7.3.2

_______________________________________________
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