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.
  • Johannes Buchhold

This module has an unstable interface.

Imports

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

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

search for valid swap partitions

local OSRPartitionCheckSwapAble () -> boolean

search for "swap-able" partitions

local OSRPartitionLoadAllFsModules () -> boolean

Load all kernel fs modules

local OSRPartitionCurrentlyMountedPartitions () -> boolean

Umount all partitions from "/mnt" or from deeper directories (e.g. "/mnt/usr", "/mnt/usr/local", ...) before mounting anything to "/mnt".

local OSRPartition2CheckPartitions () -> boolean

search for fsck possible partitions

local OSRPartitionFSCheck () -> boolean

fsck for all possible partitions

local OSRPartitionLinuxPartitions () -> boolean

search for valid Linux partitions

local OSRPartitionMountableLinuxPartitions () -> boolean

search for mountable partitions

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 OSRPartitionMountRoot () -> boolean

mount the root partition to /mnt

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 OSRDirectBootInstalledSystem () -> symbol

Boot into installed system (hack for fixing bnc#441188) Ehm, this function is copied from handle_boot() of http://svn.opensuse.org/svn/yast/branches/SuSE-Linux-10_3-Branch/installation/src/clients/inst_mode.ycp so some parts of it may not be necessary

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.