YaST2 Developers Documentation: Installation



functions
files
intro

Installation

modules/Kernel.ycp
Kernel related functions and data
  • determine kernel rpm
  • determine flags
  • determine hard reboot

Imports

  • Arch
  • Mode

Global Variables

Global Functions

Local Variables

Local Functions

local kernel_modules_to_load -> list<map<string,string> >

List of changes in /etc/sysconfig/kernel:MODULES_LOADED_ON_BOOT Needs to be stored as a list of changes due to the fact that some RPMs change the variable during installation list member is a map with keys "operation" (value "add" or "detete") and "name" (name of the module)

global switched -> boolean

Return value:
switched If the kernel was switched during installation (e.g. from k_deftl to k_smp) (Determines hard boot vs. warm boot). nonsense: We always do a hard reboot since ages during installation. The variables is used in sw_single and inst_suseconfig. FIXME: That must be cleaned up!

global binary -> string

Return value:
binary determines the name of the kernel binary below '/boot'.

global cmdLine -> string

Return value:
the kernel command line Don't write it directly, @see: AddCmdLine()

global vgaType -> string

Return value:
strign the kernel vga paramter

global kernel_packages -> list<string>

Return value:
kernel_packages a list kernels to be installed.

global dependant_packages -> list<string>

Return value:
dependant_packages a list of packages dependant on the kernel to be installed.

global suse_update -> boolean

Return value:
if "suse_update" given in cmdline

global fallbacks -> map<string, string>

Return value:
fallback map for kernel

Info:

Hide passwords in command line option string

Parameters:
in input string
Return value:
outpit string

global AddCmdLine (string name, string arg) -> void

AddCmdLine ()

Parameters:
name
arg

local ExtractCmdlineParameters (string line) -> void

Parameters:
line
Return value:
Filters out yast2 specific boot parameters and sets Parameters to the important cmdline parts.

global ProbeKernel () -> void

select kernel depending on architecture and system type.

global Kernel () -> void

Constructor extract relevant settings from Cmdline in install.inf

Info:

AddModuleToLoad ()

Parameters:
string module name add the module name to sysconfig variable

Info:

SaveModulesToLoad () save the sysconfig variable to the file

Return value:
true on success

YaST2 Developers Documentation