YaST2 Developers Documentation: Partition and filesystems checking module.

Partition and filesystems checking module.

osr_module_partition.ycp
YaST2 OS Repair. Automatic error detection & repair tool for Linux.

This module has an unstable interface.

Imports

  • FileSystems
  • Label
  • Mode
  • OSR
  • OSRCommon
  • OSRExecute
  • OSRFloppy
  • OSRFsck
  • OSRFstab
  • OSRLogFile
  • OSRModuleLoading
  • OSRPopup
  • OSRProgress
  • OSRPtbl
  • OSRStatus
  • OSRSummary
  • OSRSwap
  • OSRSystem
  • Partitions
  • Popup
  • Report
  • Stage
  • Storage
  • StorageDevices

Includes

  • partitioning/custom_part_dialogs.ycp

Local Functions

local OSRPartitionCheckDiskCount () -> boolean

Check if at least one harddisk exist.

local OSRPartitionCheckDisks () -> boolean

Checks the mbr's of all harddisks.

local OSRPartitionCheckSwap () -> boolean

local OSRPartitionLoadAllFsModules () -> boolean

Load all kernel fs modules

local OSRPartitionCurrentlyMountedPartitions () -> boolean

local OSRPartition2CheckPartitions () -> boolean

local OSRPartitionFSCheck () -> boolean

local OSRPartitionLinuxPartitions () -> boolean

////////////////////////////////////////////////// // search for valid Linux partitions //////////////////////////////////////////////////

local OSRPartitionMountableLinuxPartitions () -> boolean

local OSRPartitionFindRootPartitions () -> boolean

Checks the detected partitions for valid filesystems, mounts them and searches for filesystem tables (/etc/fstab) on the partitions.

Return value:
The result_map.
local OSRPartitionReadFstab () -> boolean

Mount the root partition and all reachable, local and valid partitions from the detected filesystem table "/etc/fstab".

Requires: list valid_root_partitions, string root_partition Provides: list just_mounted, string root_mountpoint

Return value:
The result_map.
local OSRPartitionCheckFstabRoot () -> boolean

Check the root entry in the fstab.

local OSRPartitionCheckFstab () -> boolean

Check all entris (without root) in the fstab.

local OSRPartitionReset () -> boolean

Reset temporary settings.

local OSRDirectCustomPart () -> symbol

Direct partitioning with the custom part tool.

local OSRDirectPartitionTable () -> symbol

Direct recover a lost partition table.

local OSRDirectFilesystem () -> symbol

Direct repair a damaged file system.

local OSRDirectSave2Floppy () -> symbol

Save disk partition info to floppy

local OSRPartitionInit () -> map

Initialization of the module map that contains all important information for this module.

Return value:
The map that contains all information about the module osr_module_partition.