pyanaconda.modules.storage.bootloader.bootloader_interface

Classes

BootloaderInterface

DBus interface for the bootloader module.

Module Contents

class pyanaconda.modules.storage.bootloader.bootloader_interface.BootloaderInterface[source]

Bases: pyanaconda.modules.common.base.KickstartModuleInterfaceTemplate

DBus interface for the bootloader module.

connect_signals()[source]

Connect the signals.

GetDefaultType()[source]

Get the default type of the boot loader.

FIXME: This is a temporary workaround for UI.

Returns:

a name of a boot loader type

Return type:

Str

property BootloaderMode: Int[source]

The mode of the bootloader.

Return type:

Int

property PreferredLocation: Str[source]

Where the boot record is written.

Return type:

Str

property Drive: Str[source]

The drive where the bootloader should be written.

Return type:

Str

property DriveOrder: List[Str][source]

Potentially partial order for disks.

Return type:

List[Str]

property KeepMBR: Bool[source]

Don’t update the MBR.

Return type:

Bool

property KeepBootOrder: Bool[source]

Don’t change the existing boot order.

Return type:

Bool

property ExtraArguments: List[Str][source]

List of extra bootloader arguments.

Return type:

List[Str]

property Timeout: Int[source]

The bootloader timeout.

Return type:

Int

property ZIPLSecureBoot: Str[source]

The ZIPL Secure Boot for s390x.

Return type:

Str

property Password: Str[source]

The GRUB boot loader password.

If using GRUB, set the GRUB boot loader password. This should be used to restrict access to the GRUB shell, where arbitrary kernel options can be passed.

Return type:

Str

SetEncryptedPassword(password)[source]

Set the GRUB boot loader password.

Parameters:

password (Str) – a string with the encrypted password

property IsPasswordSet: Bool[source]

Is the GRUB boot loader password set?

Return type:

Bool

property IsPasswordEncrypted: Bool[source]

Is the GRUB boot loader password encrypted?

Return type:

Bool

IsEFI()[source]

Is the bootloader based on EFI?

Returns:

True or False

Return type:

Bool

GetArguments()[source]

Get the bootloader arguments.

Get kernel parameters that are currently set up for the bootloader. The list is complete and final after the bootloader installation.

Returns:

list of arguments

Return type:

List[Str]

DetectWindows()[source]

Are Windows OS installed on the system?

Guess by searching for bootable partitions of other operating systems whether there are Windows OS installed on the system.

Returns:

True or False

Return type:

Bool

InstallBootloaderWithTasks(payload_type, kernel_versions)[source]

Install the bootloader with a list of tasks.

FIXME: This is just a temporary method.

Parameters:
  • payload_type (Str) – a string with the payload type

  • kernel_versions (List[Str]) – a list of kernel versions

Returns:

a list of paths to DBus tasks

Return type:

List[ObjPath]

GenerateInitramfsWithTasks(payload_type, kernel_versions)[source]

Generate initramfs with a list of tasks.

FIXME: This is just a temporary method.

Parameters:
  • payload_type (Str) – a string with the payload type

  • kernel_versions (List[Str]) – a list of kernel versions

Returns:

a list of paths to DBus tasks

Return type:

List[ObjPath]

FixZIPLBootloaderWithTask()[source]

Fix ZIPL bootloader with a task.

Returns:

a DBus path of a installation task

Return type:

ObjPath