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

post_init(custom_args)[source]

Post initialization method

Store custom arguments by default

Parameters:

custom_args (dict) – custom bootloader arguments

secure_boot_install()[source]

Run shim-install in self.device for secure boots

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()[source]

Install bootloader on disk device

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
}

secure_boot_install()[source]

Run shim-install in self.device for secure boots

Implementation in specialized bootloader install class required

Module Contents

class kiwi.bootloader.install.BootLoaderInstall[source]

Bases: object

BootLoaderInstall Factory

Parameters:
  • name (string) – bootloader name

  • root_dir (string) – root directory path name

  • device_provider (object) – instance of DeviceProvider

  • custom_args (dict) – custom arguments dictionary

static new(name: str, root_dir: str, device_provider: object, custom_args: Optional[Dict] = None)[source]