MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/actors/ziplconverttoblscfg/actor.pyo
�
��ic@s�ddlZddlZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZmZd	efd
��YZdS(i����N(tActor(tStopActorExecutionError(tmounting(tarchitecture(tCalledProcessError(tTargetUserSpaceInfo(tIPUWorkflowTagtPreparationPhaseTagtZiplConvertToBLSCFGcBs8eZdZdZefZdZeefZ	d�Z
RS(sk
    Convert the zipl boot loader configuration to the the boot loader specification on s390x systems.
    tzipl_convert_to_blscfgcCs�tjtj�sdSt|jt�d�}|sP|jd�td��nddg}t	j
d|jd|��U}tjj
|jdd�}tjj|�r�tj|�n|jd	d	�|jd
d
�yE|jdg�tjd	|�rtd��n|jd	d	�Wn�tk
ri}|jjd
dt�tdddit|�d6��n_tk
r�}|jjddt�tdddit|�d6|jd6|jd6��nXWdQXdS(NsnTargetUserSpaceInfo is missing. Cannot execute zipl-switch-to-blscfg to convert the zipl configuration to BLS.s6GENERAL FAILURE: Input data for the actor are missing.s/boots/devtbase_dirtbindstetcs	zipl.confs/etc/zipl.confs/etc/machine-ids/usr/sbin/zipl-switch-to-blscfgs0Failed to convert the ZIPL configuration to BLS.s-Could not call zipl-switch-to-blscfg command.texc_infotmessages(Failed to execute zipl-switch-to-blscfg.tdetailss'zipl-switch-to-blscfg execution failed,s?zipl-switch-to-blscfg execution failed with non zero exit code.tstdouttstderr(Rtmatches_architecturet
ARCH_S390XtnexttconsumeRtNonet	log_errorRRt
NspawnActionstpathtostjointexiststremovetcopy_totcalltfilecmptcmptOSErrort	copy_fromtlogterrortTruetstrRRR(tselft	userspaceRtcontexttuserspace_zipl_confte((sd/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/ziplconverttoblscfg/actor.pytprocesss>((t__name__t
__module__t__doc__tnameRtconsumestproducesRRttagsR-(((sd/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/ziplconverttoblscfg/actor.pyR
s	(R Rtleapp.actorsRtleapp.exceptionsRtleapp.libraries.commonRtleapp.libraries.common.configRtleapp.libraries.stdlibRtleapp.modelsRt
leapp.tagsRRR(((sd/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/ziplconverttoblscfg/actor.pyt<module>s