Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__/ |
Upload File : |
o F��c� � @ sv d dl mZmZ d dlmZmZmZmZ d dlm Z d dl mZ d dlm Z mZmZ e�� ZdZG dd� de j�Zd S ) � )�Optional�Tuple)�event_logger�messages�system�util)�repo)�IncompatibleService)�MessagingOperations�MessagingOperationsDict�StaticAffordancez"https://ubuntu.com/realtime-kernelc @ s| e Zd ZdZdZdZeZdZdZ dZ defdd�Ze deed f fd d��Ze deed f fdd ��Ze defdd��ZdS )�RealtimeKernelEntitlementzrealtime-kernelzReal-time kernelz0Ubuntu kernel with PREEMPT_RT patches integratedz$ubuntu-advantage-realtime-kernel.gpgT�returnc C s( t jt| j�tdg�d�}t�|� |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_required� r �@/usr/lib/python3/dist-packages/uaclient/entitlements/realtime.py�_check_for_reboot s � z+RealtimeKernelEntitlement._check_for_reboot.c C s>