Package pyanaconda :: Module platform :: Class Platform
[hide private]
[frames] | no frames]

Class Platform

source code

object --+
         |
        Platform

Platform

A class containing platform-specific information and methods for use during installation. The intent is to eventually encapsulate all the architecture quirks in one place to avoid lots of platform checks throughout anaconda.

Nested Classes [hide private]
  _bootloaderClass
TODO:
Instance Methods [hide private]
 
__init__(self, anaconda)
Creates a new Platform object.
source code
 
diskLabelTypes(self)
A list of valid disklabel types for this architecture.
source code
 
defaultDiskLabelType(self)
The default disklabel type for this architecture.
source code
 
bootStage1ConstraintDict(self) source code
 
requiredDiskLabelType(self, device_type) source code
 
bestDiskLabelType(self, device)
The best disklabel type for the specified device.
source code
 
minimumSector(self, disk)
Return the minimum starting sector for the provided disk.
source code
 
packages(self) source code
 
setDefaultPartitioning(self)
Return the default platform-specific partitioning information.
source code
 
weight(self, fstype=None, mountpoint=None)
Given an fstype (as a string) or a mountpoint, return an integer for the base sorting weight.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _minimumSector = 0
  _packages = []
  _boot_stage1_device_types = []
  _boot_stage1_format_types = []
  _boot_stage1_mountpoints = []
  _boot_stage1_max_end_mb = None
hash(x)
  _boot_stage1_raid_levels = []
  _boot_stage1_raid_metadata = []
  _boot_stage1_raid_member_types = []
  _boot_stage1_description = N_("bootloader device")
  _boot_raid_description = N_("RAID Device")
  _boot_partition_description = N_("First sector of boot partiti...
  _boot_descriptions = {}
  _disklabel_types = []
  _non_linux_format_types = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, anaconda)
(Constructor)

source code 

Creates a new Platform object. This is basically an abstract class. You should instead use one of the platform-specific classes as returned by getPlatform below. Not all subclasses need to provide all the methods in this class.

Overrides: object.__init__

diskLabelTypes(self)

source code 

A list of valid disklabel types for this architecture.

Decorators:
  • @property

defaultDiskLabelType(self)

source code 

The default disklabel type for this architecture.

Decorators:
  • @property

bootStage1ConstraintDict(self)

source code 
Decorators:
  • @property

minimumSector(self, disk)

source code 

Return the minimum starting sector for the provided disk.

Decorators:
  • @property

packages(self)

source code 
Decorators:
  • @property

weight(self, fstype=None, mountpoint=None)

source code 

Given an fstype (as a string) or a mountpoint, return an integer for the base sorting weight. This is used to modify the sort algorithm for partition requests, mainly to make sure bootable partitions and /boot are placed where they need to be.


Class Variable Details [hide private]

_boot_partition_description

Value:
N_("First sector of boot partition")