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]

Istall 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

kiwi.bootloader.install.grub2 Module

class kiwi.bootloader.install.grub2.BootLoaderInstallGrub2(root_dir, device_provider, custom_args=None)[source]

Bases: kiwi.bootloader.install.base.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
}

kiwi.bootloader.install.zipl Module

class kiwi.bootloader.install.zipl.BootLoaderInstallZipl(root_dir, device_provider, custom_args=None)[source]

Bases: kiwi.bootloader.install.base.BootLoaderInstallBase

zipl bootloader installation

install()[source]

Install bootloader on self.device

install_required()[source]

Check if zipl has to be installed

Always required

Returns

True

Return type

bool

post_init(custom_args)[source]

zipl post initialization method

Parameters

custom_args (dict) –

Contains custom zipl bootloader arguments

{'boot_device': string}

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