Bootloader installation and configuration |
include/bootloader/routines/lilolike.ycp |
Functions common for lilo-like bootloaders only | |
|
Imports
Includes
Global Functions
|
Is embedding 1.5 stage of bootloader to dedicated partition area possible?
- Return value:
-
true if it is possible
Check whether disk settings were changed since last checking
- Return value:
-
true if needs to recheck
FindMbrDisk() try to find the system's mbr device
- Return value:
-
mbr device
ConfigureLocation() Where to install the bootloader. It just gives "mbr" or "floppy"
- Return value:
-
location proposed to bootloader
Detect /boot and / (root) partition devices and store settings to internal variables
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
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
Get the md device a partition belongs to (or the partition itself if it doesn't exist
- Parameters:
-
device string a partition
- Return value:
-
the md device
Refresh disk locations
- Return value:
-
true if bootloader location should be set again
Answer whether LBA is supported
- Return value:
-
true if supported
IsBootAccessible()
- Return value:
-
true if accessible
Should backup copy of bootloader bootsector be created?
- Return value:
-
true if yes.
Fix global section of lilo-like bootloader
Fix section of lilo-like bootloader
Update sections of bootloader menu modifies internal structures
- Parameters:
-
replace boolean true if old sectinos shall be replaced
Update global options of bootloader modifies internal sreuctures
Update the device map according to changed device names Read device map and store it in internal structures
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)
Remove or add initrd option if needed, update append option if some parameters were changed
Update append option if some parameters were changed
Update the gfxboot/message/... line if exists
Generate device map proposal, store it in internal variables
Get the order of disks according to BIOS mapping
- Return value:
-
a list of all disks in the order BIOS sees them
Get the summary of disks order for the proposal
- Return value:
-
a line for the summary (or nil if not intended to be shown)