File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/chroot.cpython-310.pyc
Back
o ;j�. � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Zddl ZddlZddlZddiZ e�e�Zdd� Zdd� Zd d � Zdd� Zd d� Zddd�Zdd� Zddd�Zdd� ZdS )z� Module for chroot :maintainer: Alberto Planas <aplanas@suse.com> :maturity: new :depends: None :platform: Linux � N�apply_Zapplyc C s t d d�dur dS dS )z% Chroot command is required. z path.which�chrootNT)Fz)Module chroot requires the command chroot)� __utils__� r r �G/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/chroot.py�__virtual__ s r c C sD t j�| d�}t j�| d�}t j�| d�}tdd� | |||fD ��S )z� Return True if the chroot environment is present. root Path to the chroot environment CLI Example: .. code-block:: bash salt myminion chroot.exist /chroot �dev�proc�sysc s s � | ] }t j�|�V qd S �N)�os�path�isdir)�.0�ir r r � <genexpr>7 s � zexist.<locals>.<genexpr>)r r �join�all)�rootr r r r r r �exist&