Bootloader installation and configuration
|
include/bootloader/routines/lilolike.ycp
|
Functions common for lilo-like bootloaders only
|
|
|
Imports
- Arch
- Mode
- Storage
- StorageDevices
Global Functions
|
|
|
global DisksChanged () -> boolean
|
|
Check whether disk settings were changed since last checking
- Return value:
global FindMbrDisk () -> string
|
|
FindMbrDisk()
try to find the system's mbr device
- Return value:
global ConfigureLocation () -> string
|
|
ConfigureLocation()
Where to install the bootloader.
It just gives "mbr" or "floppy"
- Return value:
|
location proposed to bootloader |
global DetectDisks () -> void
|
|
Detect /boot and / (root) partition devices and store settings
to internal variables
global Md2Partitions (string md_device) -> map<string, integer>
|
|
Converts the md device to the list of devices building it
- Parameters:
md_device |
string md device |
- Return value:
|
a map of devices (from device name to BIOS ID or nil if
not detected) building the md device |
global Md2Partition (string md_device) -> string
|
|
Converts the md device to the first of its members
- Parameters:
md_device |
string md device |
- Return value:
|
one of devices building the md array |
global Partition2Md (string device) -> string
|
|
Get the md device a partition belongs to (or the partition itself if
it doesn't exist
- Parameters:
device |
string a partition |
- Return value:
global RefreshDisks () -> boolean
|
|
Refresh disk locations
- Return value:
|
true if bootloader location should be set again |
global LbaSupport () -> boolean
|
|
Answer whether LBA is supported
- Return value:
global IsBootAccessible () -> boolean
|
|
IsBootAccessible()
- Return value:
global createBackupBS () -> boolean
|
|
Should backup copy of bootloader bootsector be created?
- Return value:
global updateLoaderLocation () -> void
|
|
Update /etc/sysconfig/bootloader:LOADER_LOCATION according to
current location in bootloader configuration file
global finishReading () -> void
|
|
Set default section and loader device in lilo-style bootloader
global installBootLoader (string command, string logfile) -> boolean
|
|
Install the bootloader, display a popup with log if something
goes wrong
- Parameters:
command |
string command to install the bootloader |
logfile |
string filename of file used to write bootloader log |
- Return value:
global liloFixGlobals () -> void
|
|
Fix global section of lilo-like bootloader
global liloFixSections () -> void
|
|
Fix section of lilo-like bootloader
global liloUpdateSections (boolean replace) -> void
|
|
Update sections of bootloader menu
modifies internal sreuctures
- Parameters:
replace |
boolean true if old sectinos shall be replaced |
global liloRemoveUnexistentSections (string path_prefix, string relative_path_prefix) -> void
|
|
Filter sections, remove those pointing to unexistent image
- Parameters:
path_prefix |
string prefix to be added to kernel path |
relative_path_prefix |
prefix to be added to relative kernel
paths (without leading slash) |
global liloUpdateInitrd () -> void
|
|
Remove or add initrd option if needed, update append option if some
parameters were changed
global liloUpdateAppend () -> void
|
|
Update append option if some parameters were changed
|