| Server IP : 138.197.162.186 / Your IP : 216.73.216.184 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__/ |
Upload File : |
�
��Jhn � �z � d dl Z d dlmZmZmZmZmZ d dlmZm Z m
Z
mZmZ d dl
mZ d dlmZmZ d dlmZmZmZ e j, � Z e j0 ej2 e� � ZddiZ G d � d
ej: � Z G d� de� Z G d
� de� Z G d� de� Z! G d� de� Z" G d� de� Z#y)� N)�Any�Dict�Optional�Tuple�Type)�apt�event_logger�messages�system�util)�repo)�EntitlementWithMessage�
UAEntitlement)�MessagingOperations�MessagingOperationsDict�StaticAffordance�GenuineIntel�intelc �. � e Zd ZdZej
Zej Zej Z
ej j Z
dZdZdZdZdZdefd�Zdeeee f fd�Zed � � Zedeed
f fd�� Zedeed
f fd�� Z ede!fd
�� Z"dd�Z#y)�RealtimeKernelEntitlementzrealtime-kernelzubuntu-pro-realtime-kernel.gpgTF�UbuntuRealtimeKernel�returnc � � t j t | j � t dg� �� }t j |� |S )z%Check if system needs to be rebooted.zlinux-.*-realtime)�installed_pkgs�installed_pkgs_regex)r �
should_reboot�set�packages�event�needs_reboot)�self�reboot_requireds �@/usr/lib/python3/dist-packages/uaclient/entitlements/realtime.py�_check_for_rebootz+RealtimeKernelEntitlement._check_for_reboot s@ � � �.�.��t�}�}�-�!$�&9�%:�!;�
�� ���?�+��� c � � t j t t j t t j t t j t iS �N)�GenericRealtime�variant_name�NvidiaTegraRealtime�RaspberryPiRealtime�IntelIotgRealtime�r! s r# �
_get_variantsz'RealtimeKernelEntitlement._get_variants( s; � ��(�(�/��,�,�.A��,�,�.A��*�*�,=�
�
r% c �( � | j ry t S r'