MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/models/partitionlayout.py
from leapp.models import fields, Model
from leapp.topics import SystemInfoTopic


class PartitionInfo(Model):
    """
    Information about a single partition.
    """
    topic = SystemInfoTopic

    part_device = fields.String()
    """ Partition device """

    start_offset = fields.Integer()
    """ Partition start - offset from the start of the block device in bytes """


class GRUBDevicePartitionLayout(Model):
    """
    Information about partition layout of a GRUB device.
    """
    topic = SystemInfoTopic

    device = fields.String()
    """ GRUB device """

    partitions = fields.List(fields.Model(PartitionInfo))
    """ List of partitions present on the device """