Dracut module configuration files to build and extend the initramfs image

This module contains the following parsers:

DracutModuleKdumpCaptureService - file /usr/lib/dracut/modules.d/99kdumpbase/kdump-capture.service

class insights.parsers.dracut_modules.DracutModuleKdumpCaptureService(context)[source]

Bases: insights.core.IniConfigFile

Class for parsing the /usr/lib/dracut/modules.d/99kdumpbase/kdump-capture.service file.

Note

Please refer to its super-class insights.core.IniConfigFile for full usage.

Sample input:

[Unit]
Description=Kdump Vmcore Save Service
After=initrd.target initrd-parse-etc.service sysroot.mount
Before=initrd-cleanup.service

[Service]
Type=oneshot
ExecStart=/bin/kdump.sh
StandardInput=null
StandardOutput=syslog

Examples

>>> 'Service' in config.sections()
True
>>> config.has_option('Service', 'Type')
True
>>> config.get('Service', 'Type') == 'oneshot'
True