Bootloader installation and configuration
|
modules/BootGRUB.ycp
|
Module containing specific functions for GRUB configuration
and installation
|
|
|
Imports
- Arch
- BootCommon
- Kernel
- Mode
- Pkg
- Storage
- StorageDevices
Includes
- bootloader/grub/misc.ycp
- bootloader/grub/widgets.ycp
- bootloader/routines/popups.ycp
- bootloader/routines/routines.ycp
Global Variables
Global Functions
|
|
|
global device_map -> list<list<string> >
|
|
map from grub device names to linux device names
global grub_conf -> map<string,string>
|
|
parsed contents of /etc/grub.conf file
global gc_changed -> boolean
|
|
was grub_conf changed by user manually?
global deep_propose -> boolean
|
|
Shall proposal merge menus?
global insert_saved_mbr -> boolean
|
|
Insert saved MBR to bootloader menu?
global disks_order -> list<string>
|
|
Disks order for ordering widget purproses
global createLinuxSection (string title) -> list<map>
|
|
Create linux section
- Parameters:
title |
strign section title (linux, failsafe, memtest) |
- Return value:
|
section description structure |
global createSections () -> void
|
|
Propose sections to bootloader menu
modifies internal sreuctures
global createGlobals () -> void
|
|
Propose global options of bootloader
modifies internal structures
global updateSections (boolean replace) -> void
|
|
Update sections of bootloader menu
modifies internal sreuctures
- Parameters:
replace |
boolean true if old sectinos shall be replaced |
global updateGlobals () -> void
|
|
Update global options of bootloader
modifies internal sreuctures
global fixSections (boolean disks_changed) -> void
|
|
Fix sections of bootloader menu during proposal regeneration
modifies internal sreuctures
- Parameters:
disks_changed |
boolean should be true if bootloader location
relevant disk locations have changed |
global fixGlobals (boolean disks_changed) -> void
|
|
Fix global options of bootloader during proposal regeneration
modifies internal sreuctures
- Parameters:
disks_changed |
boolean should be true if bootloader location
relevant disk locations have changed |
global GetFiles () -> map<string,string>
|
|
Create strings representing cfg. files for by-hand editation
- Return value:
global SetFiles (map<string,string> files) -> void
|
|
Store strings representing cfg. files to internal structures
- Parameters:
files |
map filename -> contents |
global convertSection (string otype, string ntype, list<map> orig) -> list<map>
|
|
Convert section orig from type otype to ntype
Some information gets lost. ntype must be different from otype
- Parameters:
otype |
string original section type, "image" or "other" |
ntype |
string new section type, "image" or "other" |
orig |
list original section |
- Return value:
Export bootloader settings to a map
- Return value:
global Import (map settings) -> boolean
|
|
Import settings from a map
- Parameters:
settings |
map of bootloader settings |
global Read () -> boolean
|
|
Read settings from disk
- Return value:
Reset bootloader settings
global Propose () -> void
|
|
Propose bootloader settings
global Save () -> boolean
|
|
Save all bootloader configuration files
- Return value:
Update read settings to new version of configuration files
global Write () -> boolean
|
|
Write bootloader settings to disk
- Return value:
global GetOptions () -> map
|
|
Get map of bootloader options
- Return value:
global GetFunctions () -> map<string, any>
|
|
Return map of provided functions
- Return value:
|
map of functions (eg. $["write":``(BootGRUB::Write ())]) |
global Initializer () -> void
|
|
Initializer of GRUB bootloader
global BootGRUB () -> void
|
|
Constructor
|