o
    id                     @   s6   d dl mZmZmZ d dlmZ G dd deeZdS )    )PluginIndependentPlugin	PluginOpt)globc                   @   s4   e Zd ZdZdZdZdZeddddgZd	d
 Z	dS )BootzBootloader informationboot)systemr   )grubgrub2zgrub-commonzgrub2-commonzipl
all-imagesFzcollect lsinitrd for all images)defaultdescc                 C   s   |  g d | jddd | jddd | jddd | jdd	d | g d
 | drQtdD ]}|dd  dkr>q3| jd| dd | jd| dd q3d S d S )N)z/etc/milo.confz/etc/silo.confz/boot/efi/efi/redhat/elilo.confz/etc/yaboot.confz/boot/yaboot.confzls -lanR /bootls_boot)tagszls -lanR /sys/firmwarels_sys_firmwarelsinitrdzmokutil --sb-statemokutil_sbstate)zefibootmgr -vz"ls -l /initrd.img /boot/initrd.imgzlsinitramfs -l /initrd.imgzlsinitramfs -l /boot/initrd.imgr   z/boot/initr*.img*iz	kdump.imgzlsinitrd %sd   )priorityzlsinitramfs -l %s)add_copy_specadd_cmd_output
get_optionr   )selfimage r   9/usr/lib/python3/dist-packages/sos/report/plugins/boot.pysetup   s$   	
z
Boot.setupN)
__name__
__module____qualname__
short_descplugin_nameprofilespackagesr   option_listr   r   r   r   r   r      s    r   N)sos.report.pluginsr   r   r   r   r   r   r   r   r   <module>   s   