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

#initializeKexec

Returns a new instance of Kexec.



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

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

Instance Method Details

#prepare_environmentObject

Prepares environment for kexec

Returns:

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



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

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

  copy_kernel
end