This is an RPM download and extraction tool for internal SUSE employees looking to more quickly perform crash analysis on enterprise kernel core dumps.
This tool has only been tested on openSUSE Leap 42.1 and 42.2. It relies on python3. The modules currently in use were all installed by default except for python wget module. That can be installed with:
sudo pip install wget
The machine in use needs passwordless access to http://faux.ps/repo/smt and access to https://www.suse.com/support/kb/doc/?id=000019587
Though this tool was used on openSUSE leap it's been built only to handle SUSE Linux Enterprise kernels as provided in the above wiki url.
Download the files from this repository:
git clone https://github.com/ZeTopHat/SUSEcrashPrep.git
After that you just have to execute the crashPrep.py file. The other files are supporting and are not executed directly by the user.
user@host:~> ./crashPrep.py -h
usage: crashPrep.py [-h] [-a architecture] [-b] [-e] [-f flavor] kernel
Download files for core analysis.
positional arguments:
kernel Kernel version to use.
optional arguments:
-h, --help show this help message and exit
-a architecture, --arch architecture
Architecture to use. (defaults to x86_64)
-b, --base If included, will also download the kernel-default-
base
-e, --extraction If included, will also extract the downloaded rpm
files.
-f flavor, --flavor flavor
Flavor to use. (defaults to default)
user@host:~>
- Python - The primary programming language
- JSON - Data-interchange format used for storing kernel lists.
- BASH - Used to extract rpms.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Colin Hamilton - Initial work - ZeTopHat
See also the list of contributors who participated in this project.
- To the crash utility for making us work that much harder to analyze kernel cores.