YaST2 Developers Documentation: | ![]() |
![]() functions files intro |
Only for define ComputesDetectMethodSequence ! not global.
Only for define Detect. Contains the current module index. osrmodule_init -> 0 osr_module_partition -> 1 osr_module_grub -> 2
Only for define Detect. Contains the current detection method index of a module. OSRPartitionCheckMBR ->0 OSRPartitionCheckDisks -> 1 ..
Static global_provides entries for all detection methods. $["root_mountpoint":"/mnt"]
A map with all lists of detect-methods-entries. The function-names have to be enclosed in double-quoted braces! $["osr_module_init":[ $["group":"init", "method": ``OSRInitInit(), "progress":10, "provides":["has_floppy"], "requires":[], "summary":"Probing floppy"], $["group":"init", "method": ``OSRInitFloppy(), "progress":10, "provides":["repair_target"], "requires":[], "summary":"Init target system"]], "osr_module_partition":[ $["group":"mbr_check", "method":``OSRPartitionMBR(), "progress":10, "provides":["valid_target"], "requires":["repair_target"], "summary":"Searching for harddisks"], ] ...
Contains all reset method descriptions. Need to reset settings for a scan and repair sequence.
Sequence of all rescue (detect and repair) modules
Date of all rescue modules
Allowed back jump in a scan and repair sequence error appear.
Maximal execution of a detect function. (The proper meaning is "do not run max_index_detect_loop-times", so the variable means "maximal execution + 1")
Reset all.
Reset detect settings.
set OSRCommon::detect_group_list to []
return size of OSRCommon::detect_group_list
set new value for OSRCommon::detect_group_list
get value of OSRCommon::detect_group_list
Computes the sequence of the detection methods of a module.
This method resolves the requirements and provides of the modules and computes the correct sequence of detection modules.
This method initializes the YaST OS Repair system. It is started at first and builds the main window, initializes the global osr_map and a lot of other data. For internal use only.
Empty term.
Return a list of string with group names executed at the beginning of every Detect sequence.
Returns if all detection groups are selected for detection.
Returns true if the specified requires argument is not provided (not in the map global_provides).
Returns true if all specified requires are supported from the selected detection groups.
Returns true if a detect method is not a member of a slected detection group. Skip detection.
Reset the temporary changes. e.g.: Umount temporary mounted partitions ...
Go back to a previous detection method. e.g. if a error can not repaired.
Count of all detection methods.
This is the main detection method. It looks for the module_sequence and executes all detection methods from the forthcoming modules.
Start detection loop.
Sort the sequence of all detection methods of the specified group.
Count of all reset Methods.
Build item list with all group items.
check the dependencies for seleced detect groups
Prepare for reboot system |
YaST2 Developers Documentation | ![]() |