diff options
author | Chris Lumens <clumens@redhat.com> | 2007-10-26 14:15:59 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-10-26 14:15:59 +0000 |
commit | d44a698ef91503936bb516db5c48bc653df20cb4 (patch) | |
tree | a305961c1870f0725195c3d081ca67a884670a8a /kickstart.py | |
parent | e8f54cd09cd4ee9eb0322db38054ef0663006091 (diff) | |
download | anaconda-d44a698ef91503936bb516db5c48bc653df20cb4.tar.gz anaconda-d44a698ef91503936bb516db5c48bc653df20cb4.tar.xz anaconda-d44a698ef91503936bb516db5c48bc653df20cb4.zip |
Need to take the chroot into account for log file locations since subprocess
runs the preexec_fn after opening the stdout/stderr locations (#338541).
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py index 674ef804b..fec0e9360 100644 --- a/kickstart.py +++ b/kickstart.py @@ -55,7 +55,10 @@ class AnacondaKSScript(Script): os.chmod(path, 0700) if self.logfile is not None: - messages = self.logfile + if self.inChroot: + messages = "%s/%s" % (scriptRoot, self.logfile) + else: + messages = self.logfile elif serial: messages = "%s.log" % path else: |