U
    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   )ZgrubZgrub2zgrub-commonzgrub2-commonZzipl
all-imagesFzcollect lsinitrd for all images)defaultZdescc                 C   s   |  dddddg | jddd | jd	d
d | jddd | jddd | ddddg | drtdD ]:}|dd  dkrqp| jd| dd | jd| dd qpd S )Nz/etc/milo.confz/etc/silo.confz/boot/efi/efi/redhat/elilo.confz/etc/yaboot.confz/boot/yaboot.confzls -lanR /bootZls_boot)Ztagszls -lanR /sys/firmwareZls_sys_firmwareZlsinitrdzmokutil --sb-stateZmokutil_sbstatez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   )Zpriorityzlsinitramfs -l %s)Zadd_copy_specZadd_cmd_outputZ
get_optionr   )selfZimage r   9/usr/lib/python3/dist-packages/sos/report/plugins/boot.pysetup   s6    	
z
Boot.setupN)
__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesr   Zoption_listr   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   r   r   <module>	   s   