165. OSRFstab

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

165.1. Authors

  • Johannes Buchhold <jbuch@suse.de>

  • Use:

  • OSRFstab::LinuxPartitions ("/dev/hda1", "/dev/hda2", .. ]);

  • OSRFstab::MountablePartitions( ..);

  • OSRFstab::ValidRootPartitions( ..);

  • OSRFstab::ReadFstab("/");

  • OSRFstab::CheckRootEntry ("/dev/hda1",

  • ["/dev/hda2"], ["/dev/hda3", "/dev/hda4" ]);

  • OSRFstab::Repair();

  • OSRFstab::Check(["/dev/hda2"], ["/dev/hda3", "/dev/hda4" ]);

  • OSRFstab::Repair();

165.2. Summary of Module Globals

List of Global Functions

List of Global Variables

165.3. Global Functions

165.3.1. BootDev

Return value

  • string

165.3.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

165.3.3. CheckRootEntry

Function parameters

  • string dev_name

  • list<string> tswapable_partition_list

  • list<string> tchecked_partitions

Return value

  • boolean

165.3.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.

165.3.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>

165.3.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.

165.3.7. OSRFstab

Constructor: initialize data structures with default values

Return value

  • void

165.3.8. ReadFstab

Read the fstab file.

Function parameters

  • string mount_p

  • boolean strict

Return value

  • boolean

165.3.9. ReadSuccessfully

/etc/fstab was read

Return value

  • boolean

165.3.10. Repair

Repair the fstab. Call sub dialogs.

Return value

  • symbol

165.3.11. RootDev

Function parameters

  • string root

Return value

  • list<map>

165.3.12. SelectRoot

ask user to select the root partition

Function parameters

  • list<map> valid_root_partition_list

Return value

  • string

165.3.13. UmountAll

Function parameters

  • list<map> umount_list

Return value

  • list<map>

165.3.14. UmountAllFrom

Function parameters

  • string root

Return value

  • list<map>

165.3.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.

165.3.16. check_and_create_mount_points

Function parameters

  • map cmp

Return value

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

165.3.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

165.4. Global Variables

165.4.1. fstabpath

The path

165.5. Module Requirements

165.5.1. Module Imports

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

165.5.2. Module Includes