Package pyanaconda :: Module bootloader :: Class BootLoader
[hide private]
[frames] | no frames]

Class BootLoader

source code

object --+
         |
        BootLoader

TODO:

Instance Methods [hide private]
 
__init__(self, storage=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
stage1_device(self, device) source code
 
stage2_device(self)
Stage2 target device.
source code
 
drive_order(self, order) source code
 
_sort_drives(self, drives)
Sort drives based on the drive order.
source code
 
clear_drive_list(self)
Clear the drive list to force re-populate on next access.
source code
 
drives(self)
Sorted list of available drives.
source code
 
default(self, image) source code
 
images(self)
List of OS images that will be included in the configuration.
source code
 
clear_images(self)
Empty out the image list.
source code
 
add_image(self, image)
Add a BootLoaderImage instance to the image list.
source code
 
image_label(self, image)
Return the appropriate image label for this bootloader.
source code
 
_find_chain_images(self)
Collect a list of potential non-linux OS installations.
source code
 
platform(self) source code
 
disklabel_types(self) source code
 
device_descriptions(self) source code
 
_is_valid_md(self, device, device_types=None, raid_levels=None, metadata=None, member_types=None, desc="") source code
 
_is_valid_disklabel(self, device, disklabel_types=None, desc="") source code
 
_is_valid_format(self, device, format_types=None, mountpoints=None, desc="") source code
 
_is_valid_size(self, device, desc="") source code
 
_is_valid_location(self, device, max_mb=None, desc="") source code
 
_is_valid_partition(self, device, primary=None, desc="") source code
 
_device_type_index(self, device, types)
Return the index of the matching type in types to device's type.
source code
 
_device_type_match(self, device, types)
Return True if device is of one of the types in the list types.
source code
 
device_description(self, device) source code
 
set_preferred_stage1_type(self, preferred)
Set a preferred type of stage1 device.
source code
 
is_valid_stage1_device(self, device)
Return True if the device is a valid stage1 target device.
source code
 
stage1_devices(self)
A list of valid stage1 target devices.
source code
 
is_valid_stage2_device(self, device, linux=True, non_linux=False)
Return True if the device is suitable as a stage2 target device.
source code
 
bootable_chain_devices(self)
Potential boot devices containing non-linux operating systems.
source code
 
bootable_devices(self)
Potential boot devices containing linux operating systems.
source code
 
has_windows(self) source code
 
timeout(self, seconds) source code
 
update_only(self, value) source code
 
set_boot_args(self, *args, **kwargs)
Set up the boot command line.
source code
 
boot_prefix(self)
Prefix, if any, to paths in /boot.
source code
 
_set_console(self)
Set console options based on boot arguments.
source code
 
write_config_console(self, config)
Write console-related configuration lines.
source code
 
write_config_password(self, config)
Write password-related configuration lines.
source code
 
write_config_header(self, config)
Write global configuration lines.
source code
 
write_config_images(self, config)
Write image configuration entries.
source code
 
write_config_post(self) source code
 
write_config(self)
Write the bootloader configuration.
source code
 
writeKS(self, f)
Write bootloader section of kickstart configuration.
source code
 
read(self)
Read an existing bootloader configuration.
source code
 
trusted_boot(self, trusted_boot) source code
 
write(self)
Write the bootloader configuration and install the bootloader.
source code
 
install(self) source code
 
update(self)
Update an existing bootloader configuration.
source code

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

Class Variables [hide private]
  name = "Generic Bootloader"
  packages = []
  obsoletes = []
  config_file = None
hash(x)
  config_file_mode = 0600
  can_dual_boot = False
  can_update = False
  image_label_attr = "label"
  encryption_support = False
  stage2_is_valid_stage1 = False
  stage2_device_types = []
  stage2_raid_levels = []
  stage2_raid_metadata = []
  stage2_raid_member_types = []
  stage2_format_types = ["ext4", "ext3", "ext2"]
  stage2_mountpoints = ["/boot", "/"]
  stage2_bootable = False
  stage2_must_be_primary = True
  stage2_description = N_("/boot filesystem")
  stage2_max_end_mb = 2* 1024* 1024
  global_preserve_args = ["speakup_synth", "apic", "noapic", "ap...
  preserve_args = []
  _trusted_boot = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, storage=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

stage1_device(self, device)

source code 
Decorators:
  • @stage1_device.setter

stage2_device(self)

source code 

Stage2 target device.

Decorators:
  • @property

drive_order(self, order)

source code 
Decorators:
  • @drive_order.setter

drives(self)

source code 

Sorted list of available drives.

Decorators:
  • @property

default(self, image)

source code 
Decorators:
  • @default.setter

images(self)

source code 

List of OS images that will be included in the configuration.

Decorators:
  • @property

platform(self)

source code 
Decorators:
  • @property

disklabel_types(self)

source code 
Decorators:
  • @property

device_descriptions(self)

source code 
Decorators:
  • @property

_device_type_index(self, device, types)

source code 

Return the index of the matching type in types to device's type.

Return None if no match is found.

is_valid_stage1_device(self, device)

source code 

Return True if the device is a valid stage1 target device.

Also collect lists of errors and warnings.

The criteria for being a valid stage1 target device vary from platform to platform. On some platforms a disk with an msdos disklabel is a valid stage1 target, while some platforms require a special device. Some examples of these special devices are EFI system partitions on EFI machines, PReP boot partitions on iSeries, and Apple bootstrap partitions on Mac.

stage1_devices(self)

source code 

A list of valid stage1 target devices.

The list self.stage1_device_types is ordered, so we return a list of all valid target devices, sorted by device type, then sorted according to our drive ordering.

Decorators:
  • @property

is_valid_stage2_device(self, device, linux=True, non_linux=False)

source code 

Return True if the device is suitable as a stage2 target device.

Also collect lists of errors and warnings.

bootable_chain_devices(self)

source code 

Potential boot devices containing non-linux operating systems.

Decorators:
  • @property

bootable_devices(self)

source code 

Potential boot devices containing linux operating systems.

Decorators:
  • @property

has_windows(self)

source code 
Decorators:
  • @property

timeout(self, seconds)

source code 
Decorators:
  • @timeout.setter

update_only(self, value)

source code 
Decorators:
  • @update_only.setter

set_boot_args(self, *args, **kwargs)

source code 
Set up the boot command line.

Keyword Arguments:

    network - a pyanaconda.network.Network instance (for network
              storage devices' boot arguments)

All other arguments are expected to have a dracutSetupArgs()
method.

boot_prefix(self)

source code 

Prefix, if any, to paths in /boot.

Decorators:
  • @property

trusted_boot(self, trusted_boot)

source code 
Decorators:
  • @trusted_boot.setter

Class Variable Details [hide private]

global_preserve_args

Value:
["speakup_synth", "apic", "noapic", "apm", "ide", "noht", "acpi", "vid\
eo", "pci", "nodmraid", "nompath", "nomodeset", "noiswmd", "fips"]