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

Class GRUB

source code

object --+    
         |    
BootLoader --+
             |
            GRUB

Instance Methods [hide private]
 
__init__(self, storage)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
grub_device_name(self, device)
Return a grub-friendly representation of device.
source code
 
grub_config_dir(self)
Config dir, adjusted for grub's view of the world.
source code
 
config_dir(self)
Full path to configuration directory.
source code
 
config_file(self)
Full path to configuration file.
source code
 
device_map_file(self)
Full path to device.map file.
source code
 
grub_conf_device_line(self) source code
 
serial_command(self) source code
 
write_config_console(self, config)
Write console-related configuration.
source code
 
_encrypt_password(self)
Make sure self.encrypted_password is set up correctly.
source code
 
write_config_password(self, config)
Write password-related configuration.
source code
 
write_config_header(self, config)
Write global configuration information.
source code
 
write_config_images(self, config)
Write image entries into configuration file.
source code
 
write_device_map(self)
Write out a device map containing all supported devices.
source code
 
write_config_post(self)
Perform additional configuration after writing config file(s).
source code
 
write_config(self)
Write bootloader configuration to disk.
source code
 
install_targets(self)
List of (stage1, stage2) tuples representing install targets.
source code
 
install(self) source code
 
update(self)
Update an existing bootloader configuration.
source code
 
has_windows(self) source code

Inherited from BootLoader: add_image, boot_prefix, bootable_chain_devices, bootable_devices, clear_drive_list, clear_images, default, device_description, device_descriptions, disklabel_types, drive_order, drives, image_label, images, is_valid_stage1_device, is_valid_stage2_device, platform, read, set_boot_args, set_preferred_stage1_type, stage1_device, stage1_devices, stage2_device, timeout, trusted_boot, update_only, write, writeKS

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

Class Variables [hide private]
  name = "GRUB"
  _config_dir = "grub"
  _config_file = "grub.conf"
  _device_map_file = "device.map"
  can_dual_boot = True
  can_update = True
  stage2_is_valid_stage1 = True
  stage2_bootable = True
  stage2_must_be_primary = False
  stage2_device_types = ["partition", "mdarray"]
  stage2_raid_levels = [mdraid.RAID1]
  stage2_raid_member_types = ["partition"]
  stage2_raid_metadata = ["0", "0.90", "1.0"]
  packages = ["grub"]

Inherited from BootLoader: config_file_mode, encryption_support, global_preserve_args, image_label_attr, obsoletes, preserve_args, stage2_description, stage2_format_types, stage2_max_end_mb, stage2_mountpoints

Inherited from BootLoader (private): _trusted_boot

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, storage)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

grub_config_dir(self)

source code 

Config dir, adjusted for grub's view of the world.

Decorators:
  • @property

config_dir(self)

source code 

Full path to configuration directory.

Decorators:
  • @property

config_file(self)

source code 

Full path to configuration file.

Decorators:
  • @property
Overrides: config_file

device_map_file(self)

source code 

Full path to device.map file.

Decorators:
  • @property

grub_conf_device_line(self)

source code 
Decorators:
  • @property

serial_command(self)

source code 
Decorators:
  • @property

write_config_console(self, config)

source code 

Write console-related configuration.

Overrides: BootLoader.write_config_console

write_config_password(self, config)

source code 

Write password-related configuration.

Overrides: BootLoader.write_config_password

write_config_header(self, config)

source code 

Write global configuration information.

Overrides: BootLoader.write_config_header

write_config_images(self, config)

source code 

Write image entries into configuration file.

Overrides: BootLoader.write_config_images

write_config_post(self)

source code 

Perform additional configuration after writing config file(s).

Overrides: BootLoader.write_config_post

write_config(self)

source code 

Write bootloader configuration to disk.

Overrides: BootLoader.write_config

install_targets(self)

source code 

List of (stage1, stage2) tuples representing install targets.

Decorators:
  • @property

install(self)

source code 
Overrides: BootLoader.install

update(self)

source code 

Update an existing bootloader configuration.

Overrides: BootLoader.update
(inherited documentation)

has_windows(self)

source code 
Decorators:
  • @property
Overrides: BootLoader.has_windows