File: //etc/leapp/repos.d/system_upgrade/el7toel8/actors/ziplconverttoblscfg/actor.pyo
�
��ic @ s� d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l
m Z d d l m
Z
d d l m Z m Z d e f d
� � YZ d S( i����N( t Actor( t StopActorExecutionError( t mounting( t architecture( t CalledProcessError( t TargetUserSpaceInfo( t IPUWorkflowTagt PreparationPhaseTagt ZiplConvertToBLSCFGc B s8 e Z d Z d Z e f Z d Z e e f Z d � Z
RS( sk
Convert the zipl boot loader configuration to the the boot loader specification on s390x systems.
t zipl_convert_to_blscfgc C s� t j t j � s d St | j t � d � } | sP | j d � t d � � n d d g } t j
d | j d | � �U} t j j
| j d d � } t j j | � r� t j | � n | j d d � | j d
d
� yE | j d g � t j d | � rt d � � n | j d d � Wn� t k
ri} | j j d
d t �t d d d i t | � d 6� � n_ t k
r�} | j j d d t �t d d d i t | � d 6| j d 6| j d 6� � n XWd QXd S( Nsn TargetUserSpaceInfo is missing. Cannot execute zipl-switch-to-blscfg to convert the zipl configuration to BLS.s6 GENERAL FAILURE: Input data for the actor are missing.s /boots /devt base_dirt bindst etcs zipl.confs /etc/zipl.confs /etc/machine-ids /usr/sbin/zipl-switch-to-blscfgs0 Failed to convert the ZIPL configuration to BLS.s- Could not call zipl-switch-to-blscfg command.t exc_infot messages( Failed to execute zipl-switch-to-blscfg.t detailss'