summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>1999-11-30 21:38:56 +0000
committerMike Fulbright <msf@redhat.com>1999-11-30 21:38:56 +0000
commitf687e3cd850fb2378252c6d2fb0c3bbac2ef3107 (patch)
treeb49c70645c34ef347525710ec59a879c27f7b88c /todo.py
parentbf988d0c02ea414d919b8f0270456bffac6593ee (diff)
downloadanaconda-f687e3cd850fb2378252c6d2fb0c3bbac2ef3107.tar.gz
anaconda-f687e3cd850fb2378252c6d2fb0c3bbac2ef3107.tar.xz
anaconda-f687e3cd850fb2378252c6d2fb0c3bbac2ef3107.zip
When in reconfigure mode we log to /tmp/reconfig.loganaconda-before-rpm-head-changes
Dr Mike <drmike@redhat.com>
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/todo.py b/todo.py
index a5918f9cb..c0fb7c9e7 100644
--- a/todo.py
+++ b/todo.py
@@ -38,9 +38,12 @@ class FakeDDruid:
self.partitions = []
class LogFile:
- def __init__ (self, serial):
- if serial:
- self.logFile = open("/tmp/install.log", "w")
+ def __init__ (self, serial, reconfigOnly):
+ if serial or reconfigOnly:
+ if serial:
+ self.logFile = open("/tmp/install.log", "w")
+ else:
+ self.logFile = open("/tmp/reconfig.log", "w")
else:
self.logFile = open("/dev/tty3", "w")
@@ -280,7 +283,7 @@ class ToDo:
self.language = Language ()
self.serial = serial
self.reconfigOnly = reconfigOnly
- self.log = LogFile (serial)
+ self.log = LogFile (serial, reconfigOnly)
self.network = Network ()
self.rootpassword = Password ()
self.extraModules = extraModules
@@ -1233,7 +1236,6 @@ class ToDo:
return todo.users
def setPassword(todo, account, password):
- todo.log("in SetPassword for %s %s" % (account, password))
devnull = os.open("/dev/null", os.O_RDWR)
argv = [ "/usr/bin/passwd", "--stdin", account ]