forked from msvsphere/leapp-repository
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
707 B
26 lines
707 B
9 months ago
|
from leapp.models import fields, Model
|
||
|
from leapp.topics import SystemInfoTopic
|
||
|
|
||
|
|
||
|
class BootEntry(Model):
|
||
|
"""
|
||
|
One entry in the boot loader configuration.
|
||
|
|
||
|
Not meant to be produced directly, only as a part of :class:`SourceBootLoaderConfiguration`.
|
||
|
"""
|
||
|
topic = SystemInfoTopic
|
||
|
|
||
|
title = fields.String()
|
||
|
"""Title of the boot entry."""
|
||
|
|
||
|
kernel_image = fields.String()
|
||
|
"""Kernel image of the boot entry."""
|
||
|
|
||
|
|
||
|
class SourceBootLoaderConfiguration(Model):
|
||
|
"""Describes the bootloader configuration found on the source system."""
|
||
|
topic = SystemInfoTopic
|
||
|
|
||
|
entries = fields.List(fields.Model(BootEntry))
|
||
|
"""Boot entries available in the bootloader configuration."""
|