YaST2 Developers Documentation: Installation

Installation

modules/Kernel.ycp
Kernel related functions and data

This module has an unstable interface.

  • determine kernel rpm
  • determine flags
  • determine hard reboot

Imports

  • Arch
  • Linuxrc
  • Mode
  • Stage

Global Functions

Local Variables

Local Functions

local binary -> string

the name of the kernel binary below '/boot'.

local kernel_packages -> list<string>

a list kernels to be installed.

local final_kernel -> string

the final kernel to be installed after verification and availability checking

local vgaType -> string

string the kernel vga paramter

local suse_update -> boolean

if "suse_update" given in cmdline

local cmdLine -> string

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

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)

local inform_about_kernel_change -> boolean

A flag to indicate if a popup informing about the kernel change should be displayed by inst_suseconfig.

local fallbacks -> map<string, string>

fallback map for kernel

local HidePasswords (string in) -> string

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.
local ParseInstallationKernelCmdline () -> void

Parse installation kernel commad line got from install.inf

global GetVgaType () -> string

Get the vga= kernel parameter

Return value:
the vga= kernel parameter
global SetVgaType (string new_vga) -> void

Set the vga= kernel argument FIXME is heer because of bootloader module, should be removed

Parameters:
new_vga
global GetSuSEUpdate () -> boolean

Check if suse_update kernel command line argument was passed

Return value:
true if it was
global GetCmdLine () -> string

Get the kernel command line

Return value:
the command line
global SetCmdLine (string new_cmd_line) -> void

Set the kernel command line FIXME is heer because of bootloader module, should be removed

Parameters:
new_cmd_line
global ProbeKernel () -> void

select kernel depending on architecture and system type.

global GetBinary () -> string

Het the name of kernel binary under /boot

Return value:
the name of the kernel binary
global GetPackages () -> list<string>

Get the list of kernel packages

Return value:
a list of kernel packages
global ComputePackage () -> string

Compute kernel package

Return value:
selected kernel
global ComputePackagesForBase (string base, boolean check_avail) -> list<string>

Compute kernel package for the specified base kernel package

Parameters:
base string the base kernel package name (eg. kernel-default)
check_avail boolean if true, additional packages are checked for for being available on the medias before adding to the list
Return value:
a list of all kernel packages (including the base package) that are to be installed together with the base package
global ComputePackages () -> list <string>

Compute kernel packages

Return value:
of selected kernel packages
global AddModuleToLoad (string name) -> void

Add a kernel module to the list of modules to load after boot

Parameters:
name
global RemoveModuleToLoad (string name) -> void

Remove a kernel module from the list of modules to load after boot

Parameters:
name string the name of the module
global SaveModulesToLoad () -> boolean

SaveModuleToLoad () save the sysconfig variable to the file

Return value:
true on success
global SetInformAboutKernelChange (boolean b) -> void

Set inform_about_kernel_change.

Parameters:
b
global GetInformAboutKernelChange () -> boolean

Get inform_about_kernel_change.