pyanaconda.modules.storage.bootloader.bootloader_interface
Classes
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.
- 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 ExtraArguments: List[Str][source]
List of extra bootloader arguments.
- Return type:
List[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 IsPasswordEncrypted: Bool[source]
Is the GRUB boot loader password encrypted?
- 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]