170. OSRFstab

YaST OS Repair. Automatic error detection & repair tool for Linux.

170.1. Summary of Module Globals

List of Global Functions

List of Global Variables

170.2. Global Functions

170.2.1. BootDev

Return value

  • string

170.2.2. Check

Check if all entries in the fstab are valid and if all found devices have an entry in the fstab.

Function parameters

  • list<string> tswapable_partition_list

  • list<string> tchecked_partitions

  • list<string> tencrypted_partitions

Return value

  • boolean

170.2.3. CheckRootEntry

Function parameters

  • string dev_name

  • list<string> tswapable_partition_list

  • list<string> tchecked_partitions

Return value

  • boolean

170.2.4. LinuxPartitions

Find the list of all valid linux-partitions in the target-map.

Function parameters

  • list checked_partitions

Return value

  • list<string> - The list of names of valid linux-partitions.

170.2.5. MountAll

Mount all partitions specified in the fstab. If no fstab was readed try to find root partition and read fstab. Afterwards mount all partitions.

Function parameters

  • string root

Return value

  • list<map>

170.2.6. MountablePartitions

Returns a list of names of all mountable partitions out of the specified list.

Function parameters

  • list<string> linux_partition_list

  • string m_point

Return value

  • list<string> - List of partition names successfully mounted to m_point.

170.2.7. OSRFstab

Constructor: initialize data structures with default values

Return value

  • void

170.2.8. ReadFstab

Read the fstab file.

Function parameters

  • string mount_p

  • boolean strict

Return value

  • boolean

170.2.9. ReadedSuccessfully

Return value

  • boolean

170.2.10. Repair

Repair the fstab. Call sub dialogs.

Return value

  • symbol

170.2.11. RootDev

Function parameters

  • string root

Return value

  • list<map>

170.2.12. SelectRoot

ask user to select the root partition

Function parameters

  • list<map> valid_root_partition_list

Return value

  • string

170.2.13. UmountAll

Function parameters

  • list<map> umount_list

Return value

  • list<map>

170.2.14. UmountAllFrom

Function parameters

  • string root

Return value

  • list<map>

170.2.15. ValidRootPartitions

Returns a list of names of all mountable partitions that contain a file /etc/fstab out of the specified list.

Function parameters

  • list<string> mount_possible_list

  • string mount_p

Return value

  • list<map> - The list of partition-names that were successfully mounted to /mnt and contain a filesystem table.

170.2.16. check_and_create_mount_points

Function parameters

  • map cmp

Return value

  • map - create failed for mount points $[ 1 : "/hhh" ];

170.2.17. partition_mounted

Check if given partition is already mounted workaround; this should be done via Storage API (bnc#372238)

Function parameters

  • string part

  • string mp

Return value

  • boolean

170.3. Global Variables

170.3.1. fstabpath

The path

170.4. Module Requirements

170.4.1. Module Imports

  • AsciiFile
  • FileSystems
  • Hotplug
  • Initrd
  • Installation
  • Label
  • Mode
  • OSRExecute
  • OSRFsck
  • OSRLogFile
  • OSRPopup
  • OSRSystem
  • Partitions
  • Popup
  • Report
  • Storage
  • StorageDevices
  • SuSERelease

170.4.2. Module Includes