|
OSR.ycp |
Control of the automatic scan and repair sequence. | |
|
|
This module has an unstable interface. |
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
- Parameters:
-
gl
get value of OSRCommon::detect_group_list
Computes the sequence of the detection methods of a module.
- Parameters:
-
module_name
This method resolves the requirements and provides of the modules and computes the correct sequence of detection modules.
- Parameters:
-
module_name_list
- Return value:
-
True if the module sequence was successfully created.
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.
- Return value:
-
True if the initialization progress succeeded.
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).
- Parameters:
-
requires
Returns true if all specified requires are supported from the selected detection groups.
- Parameters:
-
requires
Returns true if a detect method is not a member of a slected detection group. Skip detection.
- Parameters:
-
method_map
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.
- Return value:
-
True if the detection progress succeeded.
Start detection loop.
Sort the sequence of all detection methods of the specified group.
- Parameters:
-
groups
Count of all reset Methods.
Build item list with all group items.
- Parameters:
-
mode if all entries should be checked ('Select all')
check the dependencies for seleced detect groups
Prepare for reboot system