diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-12-18 14:37:48 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2008-12-18 14:37:48 +0000 |
commit | 01db3fad3481c2d389349ab0157c823a543e38b4 (patch) | |
tree | 9ce64de01197437a2bb873dfbfed815325ac5769 /src/lib/sos/plugins/anaconda.py | |
parent | 7db643fd50cff86478d11408249228ed01731e2a (diff) | |
download | sos-01db3fad3481c2d389349ab0157c823a543e38b4.tar.gz |
remove sysrq triggering : resolves rhbz476970
add anaconda support resolves rhbz472108
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@540 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib/sos/plugins/anaconda.py')
-rw-r--r-- | src/lib/sos/plugins/anaconda.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/sos/plugins/anaconda.py b/src/lib/sos/plugins/anaconda.py new file mode 100644 index 00000000..26c54997 --- /dev/null +++ b/src/lib/sos/plugins/anaconda.py @@ -0,0 +1,36 @@ +### This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. + +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +import sos.plugintools +import os + +class anaconda(sos.plugintools.PluginBase): + """Anaconda / Installation information + """ + def checkenabled(self): + try: os.stat("/var/log/anaconda.log") + except: pass + else: return True + + return False + + def setup(self): + self.addCopySpec("/root/anaconda-ks.cfg") + self.addCopySpec("/root/install.log") + self.addCopySpec("/root/install.log.syslog") + self.addCopySpec("/var/log/anaconda.log") + self.addCopySpec("/var/log/anaconda.syslog") + self.addCopySpec("/var/log/anaconda.xlog") + return + |