Bootloader installation and configuration |
modules/BootPOWERLILO.ycp |
| Module containing specific functions for POWERLILO configuration and installation | |
|
|
|
This module has an unstable interface. |
Imports
Includes
Global Functions
Local Functions |
Initialize the attribute of currently used board type
Create section for bootable image
- Parameters:
-
title string the section name to create (untranslated)
- Return value:
-
describes the section
Choose a boot partition on pmac type == Apple_HFS|Apple_Bootstrap && size < 20 cyl
- Return value:
-
device name of pmac boot partition
Propose the location of the root device on disk and the boot device (if any), according to the subarchitecture. Results are stored in global variables.
Propose sections to bootloader menu modifies internal sreuctures
Propose global options of bootloader modifies internal structures
Save the ID of the base installation source modifies internal variable
Propose bootloader settings
Propose bootloader settings
global define void Propose () { boolean initial_propose = true; if (BootCommon::was_proposed) { initial_propose = false; } else { currentBoardInit (); } BootCommon::DetectDisks (); BootCommon::del_parts = BootCommon::getPartitionList (`deleted); boolean disks_changed = BootCommon::RefreshDisks();
if (updatePrepBootPartitions () || prep_boot_partition == "") { // TODO warning to user choosePrepBootPartition (); }
if ( getBoardType () == "iseries" ) { iSeriesPropose (initial_propose); } else if ( getBoardType () == "prep" ) { PRePPropose (initial_propose); } else if ( getBoardType () == "chrp" ) { CHRPPropose (initial_propose); }
if (BootCommon::sections == nil || size (BootCommon::sections) == 0) { createSections (); BootCommon::kernelCmdLine = Kernel::GetCmdLine (); } else { if (Mode::autoinst ()) { y2debug ("nothing to to in AI mode if sections exist"); // TODO whatever will be needed } else fixSections (disks_changed); } if (BootCommon::globals == nil || size (BootCommon::globals) == 0) { createGlobals (); } else { if (Mode::autoinst ()) { y2debug ("nothing to to in AI mode if globals are defined"); // TODO whatever will be needed } else fixGlobals (disks_changed); } }
Import settings from a map
- Parameters:
-
settings map of bootloader settings
- Return value:
-
true on success
Read settings from disk
- Parameters:
-
reread
- Return value:
-
true on success
Reset bootloader settings
- Parameters:
-
init
Save all bootloader configuration files to the cache of the PlugLib PlugLib must be initialized properly !!!
- Parameters:
-
clean boolean true if settings should be cleaned up (checking their correctness, supposing all files are on the disk init boolean true to init the library flush boolean true to flush settings to the disk
- Return value:
-
true if success
Display bootloader summary
- Return value:
-
a list of summary lines
Update read settings to new version of configuration files
Firstly update sections of bootloader configuration and modify internal structures as needed. This means right now:
Secondly update global settings of bootloader configuration:
Write bootloader settings to disk
- Return value:
-
true on success
Return map of provided functions
- Return value:
-
map of functions (eg. $["write":BootPOWERLILO::Write])
Initializer of PowerLILO bootloader
Constructor