FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-26-2010, 09:00 PM
"Brian C. Lane"
 
Default Include the kickstart file in the traceback

This adds logging the contents of the kickstart file, if present, to the
traceback file. It also includes all of the command line options states.
---
anaconda | 1 +
pyanaconda/__init__.py | 1 +
pyanaconda/exception.py | 3 +++
3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index 8949b31..e369d64 100755
--- a/anaconda
+++ b/anaconda
@@ -527,6 +527,7 @@ if __name__ == "__main__":
xserver_pid = None

(opts, args) = parseOptions()
+ anaconda.opts = opts

# check memory, just the text mode for now:
check_memory(anaconda, opts, 't')
diff --git a/pyanaconda/__init__.py b/pyanaconda/__init__.py
index 1119d8a..b89d526 100644
--- a/pyanaconda/__init__.py
+++ b/pyanaconda/__init__.py
@@ -65,6 +65,7 @@ class Anaconda(object):
self.mediaDevice = None
self.methodstr = None
self._network = None
+ self.opts = None
self._platform = None
self.proxy = None
self.proxyUsername = None
diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index 1075717..18fc43c 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -99,6 +99,9 @@ def initExceptionHandling(anaconda):
else:
fileList.extend(["/tmp/syslog"])

+ if anaconda.opts and anaconda.opts.ksfile:
+ fileList.extend([anaconda.opts.ksfile])
+
conf = Config(programName="anaconda",
programVersion=isys.getAnacondaVersion(),
attrSkipList=[ "backend.ayum",
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 07-27-2010, 01:53 PM
Chris Lumens
 
Default Include the kickstart file in the traceback

> This adds logging the contents of the kickstart file, if present, to the
> traceback file. It also includes all of the command line options states.

Looks good.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org