grubby - command /usr/sbin/grubby

This is a collection of parsers that all deal with the command grubby. Parsers included in this module are:

GrubbyDefaultIndex - command grubby --default-index

GrubbyDefaultKernel - command grubby --default-kernel

class insights.parsers.grubby.GrubbyDefaultIndex(context, extra_bad_lines=None)[source]

Bases: CommandParser

This parser parses the output of command grubby --default-index.

The typical output of this command is:

0

Examples

>>> grubby_default_index.default_index
0
Raises:
default_index

the numeric index of the current default boot entry, count from 0

Type:

int

parse_content(content)[source]

This method must be implemented by classes based on this class.

class insights.parsers.grubby.GrubbyDefaultKernel(context, extra_bad_lines=None)[source]

Bases: CommandParser

This parser parses the output of command grubby --default-kernel.

The typical output of this command is:

/boot/vmlinuz-2.6.32-573.el6.x86_64

Examples

>>> grubby_default_kernel.default_kernel
'/boot/vmlinuz-2.6.32-573.el6.x86_64'
Raises:
default_kernel

The default kernel name for next boot

Type:

str

parse_content(content)[source]

This method must be implemented by classes based on this class.