File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/kernelpkg.cpython-310.pyc
Back
o ;j� � @ sF d Z ddlZe�e�Zdd� Zdd� Zd dd�Zd d d �Zdd� Z dS )a Manage kernel packages and active kernel version ========================================================================= Example state to install the latest kernel from package repositories: .. code-block:: yaml install-latest-kernel: kernelpkg.latest_installed: [] Example state to boot the system if a new kernel has been installed: .. code-block:: yaml boot-latest-kernel: kernelpkg.latest_active: - at_time: 1 Example state chaining the install and reboot operations: .. code-block:: yaml install-latest-kernel: kernelpkg.latest_installed: [] boot-latest-kernel: kernelpkg.latest_active: - at_time: 1 - onchanges: - kernelpkg: install-latest-kernel Chaining can also be achieved using wait/listen requisites: .. code-block:: yaml install-latest-kernel: kernelpkg.latest_installed: [] boot-latest-kernel: kernelpkg.latest_wait: - at_time: 1 - listen: - kernelpkg: install-latest-kernel � Nc C s dt v rdS dS )zt Only make these states available if a kernelpkg provider has been detected or assigned for this minion �kernelpkg.upgradeT)Fz$kernelpkg module could not be loaded)�__salt__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/kernelpkg.py�__virtual__4 s r c K s� t d � }t d � }d| i}||v r#d|d<