Installation |
modules/Kernel.ycp |
| Kernel related functions and data |
|
|
|
- determine kernel rpm
- determine flags
- determine hard reboot
Imports
Global Functions
Local Variables
Local Functions
|
|
|
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
string the kernel vga paramter
|
local suse_update -> boolean
|
|
if "suse_update" given in cmdline
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
|
global AddCmdLine (string name, string arg) -> void
|
|
AddCmdLine ()
- Parameters:
|
local ExtractCmdlineParameters (string line) -> void
|
|
- Parameters:
- 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:
|
global GetSuSEUpdate () -> boolean
|
|
Check if suse_update kernel command line argument was passed
- Return value:
|
global GetCmdLine () -> string
|
|
Get the kernel command line
- Return value:
|
global SetCmdLine (string new_cmd_line) -> void
|
|
Set the kernel command line
FIXME is heer because of bootloader module, should be removed
- Parameters:
|
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:
|
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:
|
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:
|
global SetInformAboutKernelChange (boolean b) -> void
|
|
Set inform_about_kernel_change.
- Parameters:
|
global GetInformAboutKernelChange () -> boolean
|
|
Get inform_about_kernel_change.
|