U
    -_g                     @   s6   d dl m Z  d dlmZmZmZ G dd deeZdS )    )glob)PluginIndependentPlugin	PluginOptc                   @   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gdd	 | jd
dgdd	 | ddg | jddd | jddd | dddg | drtdD ]>}|dd  dkrq| jd| dd | jd| dd qd S )Nz/etc/milo.confz/etc/silo.confz/boot/efi/efi/redhat/elilo.confz/etc/yaboot.confz/boot/yaboot.confz/bootZls_bootT)tags	recursivez/sys/firmware/Zls_sys_firmwarez/initrd.imgz/boot/initrd.imgZlsinitrd)r   zmokutil --sb-stateZmokutil_sbstatezefibootmgr -vzlsinitramfs -l /initrd.imgzlsinitramfs -l /boot/initrd.imgr	   z/boot/initr*.img*iz	kdump.imgz	lsinitrd d   )Zpriorityzlsinitramfs -l )Zadd_copy_specZadd_dir_listingZ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)r   Zsos.report.pluginsr   r   r   r   r   r   r   r   <module>	   s   