kiwi.bootloader.install Package¶
Submodules¶
kiwi.bootloader.install.base
Module¶
- class kiwi.bootloader.install.base.BootLoaderInstallBase(root_dir, device_provider, custom_args=None)[source]¶
Bases:
object
Base class for bootloader installation on device
- Parameters:
root_dir (string) – root directory path name
device_provider (object) – instance of
DeviceProvider
custom_args (dict) – custom arguments dictionary
- install()[source]¶
Install bootloader on self.device
Implementation in specialized bootloader install class required
- install_required()[source]¶
Check if bootloader needs to be installed
Implementation in specialized bootloader install class required
kiwi.bootloader.install.grub2
Module¶
- class kiwi.bootloader.install.grub2.BootLoaderInstallGrub2(root_dir, device_provider, custom_args=None)[source]¶
Bases:
BootLoaderInstallBase
grub2 bootloader installation
- install_required()[source]¶
Check if grub2 has to be installed
Take architecture and firmware setup into account to check if bootloader code in a boot record is required
- Returns:
True or False
- Return type:
bool
- post_init(custom_args)[source]¶
grub2 post initialization method
- Parameters:
custom_args (dict) –
Contains custom grub2 bootloader arguments
{ 'target_removable': bool, 'system_volumes': list_of_volumes, 'firmware': FirmWare_instance, 'efi_device': string, 'boot_device': string, 'root_device': string }