o
    O6uf¦  ã                   @   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   )Ú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¡rSt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*i÷ÿÿÿz	kdump.imgz	lsinitrd éd   )Úpriorityzlsinitramfs -l )Ú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)r   Úsos.report.pluginsr   r   r   r   r   r   r   r   Ú<module>   s   