diff options
author | Mike Fulbright <msf@redhat.com> | 1999-11-30 21:38:56 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 1999-11-30 21:38:56 +0000 |
commit | f687e3cd850fb2378252c6d2fb0c3bbac2ef3107 (patch) | |
tree | b49c70645c34ef347525710ec59a879c27f7b88c /todo.py | |
parent | bf988d0c02ea414d919b8f0270456bffac6593ee (diff) | |
download | anaconda-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.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 ] |