Class: Bootloader::Kexec

Inherits:
Object
  • Object
show all
Includes:
Yast::Logger
Defined in:
src/lib/bootloader/kexec.rb

Overview

Task of class is to allow preparation for running kexec at the end of installation. It also decide if environment is not suitable for kexec.

Instance Method Summary (collapse)

Constructor Details

- (Kexec) initialize

Returns a new instance of Kexec



9
10
11
12
13
14
15
# File 'src/lib/bootloader/kexec.rb', line 9

def initialize
  Yast.import "Arch"
  Yast.import "Directory"
  Yast.import "Installation"
  Yast.import "Mode"
  Yast.import "ProductFeatures"
end

Instance Method Details

- (Object) prepare_environment

Prepares environment for kexec

Returns:

  • false if environment is not suitable to be used for kexec



19
20
21
22
23
24
# File 'src/lib/bootloader/kexec.rb', line 19

def prepare_environment
  log.info "CopyKernelInird: start copy kernel and inird"
  return false unless proper_environment?

  copy_kernel
end