Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/grub2.cpython-36.pyc

3

�fz�@s*ddlmZmZmZGdd�dee�ZdS)�)�Plugin�IndependentPlugin�SoSPredicatec@s,eZdZdZdZdZdZdd�Zdd	�Zd
S)
�Grub2zGRUB2 bootloader�grub2�boot�	grub2-efi�grub2-commoncCs�|jdddd��|jddddd	d
ddd
ddg�|jddd�d}d|dd�}|j|t||d�d�rp|d7}|j|ddit|dgd�d�dS)NZ	grub2_cfgZ
grub2_efi_cfgZgrubenv)z/boot/grub2/grub.cfgz/boot/efi/.*/grub.cfgz/boot/grub2/grubenvz/boot/efi/EFI/*/grub.cfgz/boot/grub2/grub.cfgz/boot/grub2/grubenvz/boot/grub/grub.cfgz/boot/loader/entriesz/boot/grub2/custom.cfgz/boot/grub2/user.cfgz/etc/default/grubz/etc/grub2.cfgz/etc/grub.dz/etc/grub2-efi.cfgzls -lanR /bootZls_boot)Ztagszgrub2-mkconfigz	%s --helpz--no-grubenv-update)�cmd�output)Zcmd_outputs)�predz --no-grubenv-updateZGRUB_DISABLE_OS_PROBER�trueZdm_mod)Zkmods)�envr)Z
add_file_tagsZ
add_copy_specZadd_cmd_outputZtest_predicater)�selfZgrub_cmd�out�r�/usr/lib/python3.6/grub2.py�setups.
zGrub2.setupcCsLd}d}d}d}|jd||�|jd||�|jd||�|jd||�dS)Nz(password )\s*(\S*)\s*(\S*)z!(password_pbkdf2)\s*(\S*)\s*(\S*)z\1 \2 ********z\1 \2 grub.pbkdf2.********zgrub2-mkconfigz
.*\/grub\.)Zdo_cmd_output_subZdo_path_regex_sub)rZ
passwd_expZpasswd_pbkdf2_expZ
passwd_subZpasswd_pbkdf2_subrrr�postproc7s(zGrub2.postprocN)r)rrr	)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrrs#rN)Zsos.report.pluginsrrrrrrrr�<module>	s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists