Bootloader checks
List of Global Functions
BootloaderPackages - Return all needed packages of a boot loader.
CheckConfig - Check the boot loader configuration.
CheckInitrdModules - Check the specified initrd modules.
CheckLoaderPackages - Check boot loader packages.
CheckSysconfigFiles - Check the main config file for boot loader and kernel initrd
ExistsConf - Check if the boot loader conf file exists.
InstallLoaderPackage - Install all missing package if the user accept.
InstallNewLoader - Install a new boot loader
PackageVersionStrings - Return a list of strings with all required boot loader packages with the current and the required version.
RepairConfig - Repair a damaged boot loader configuration.
RepairInitrdModules - Wirte initrd modules and call mkinitrd
RepairSysconfigFiles - Repairing configuration files.
Reset - Reset module settings.
VersionIsHigherOrEqual - Compares the two specified version numbers. Each version number has to be a string of the form "21.6-34", "34.4.3", ...
repair_grub_config - Repair a damaged grub configuration.
sectOptions2Map - reads specified section and returns values as list [$[option:$[value:..., comment:...]]]
List of Global Variables
boot_device - The boot device e.g.: /dev/hda1
missing_packages - A list of all not installed boot loader packages
needed_config_files - Configuration files needed by every boot loader
root_device - The root device e.g.: /dev/hda2
root_mountpoint - The root mount point.
Return all needed packages of a boot loader.
Function parameters
string bootloader
Return value
list<string>
Check the boot loader configuration.
Function parameters
string loader
string root
string root_dev
string boot_dev
Return value
boolean
Check the specified initrd modules.
Function parameters
string root
Return value
boolean
Check boot loader packages.
Function parameters
string loader
string root
string what
Return value
boolean
Check the main config file for boot loader and kernel initrd
Function parameters
string root
Return value
boolean
Check if the boot loader conf file exists.
Function parameters
string loader
string root
Return value
boolean
Install all missing package if the user accept.
Function parameters
string loader
string root
string install_reason
Return value
symbol
Return a list of strings with all required boot loader packages with the current and the required version.
Function parameters
string bootloader
list<string> packages
Return value
list<string>
Repair a damaged boot loader configuration.
Function parameters
string loader
boolean show_message
Return value
symbol
Compares the two specified version numbers. Each version number has to be a string of the form "21.6-34", "34.4.3", ...
Function parameters
string version_1
string version_2
Return value
boolean - True if the first version number is newer than the second one.