228. RootPart

228.1. Authors

  • Arvin Schnell <arvin@suse.de>

  • Purpose: Responsible for searching of root partitions and

  • mounting of target partitions.

228.2. Summary of Module Globals

List of Global Functions

  • AnyQuestionAnyButtonsDetails -

  • FindRootPartitions - Find all valid root partitions and place the result in rootPartitions. The partitions are mounted and unmounted again (to Installation::destdir). Loads a bunch of kernel modules.

  • GetInfoOfSelected - Get the key what of the selected root partition.

  • IncompleteInstallationDetected - Checks the partition whether it contains an incomplete installation.

  • MountPartitions - Mounting root-partition; reading fstab and mounting read partitions

  • SetSelectedToValid - Set the selected root partition to some valid one. Only make sense if the number of valid root partition is one.

  • UnmountPartitions - Unmount all mounted partitions, deactivate swaps, detach loopback devices. Uses list activated to make actions in reverse order.

List of Global Variables

    228.3. Global Functions

    228.3.1. AnyQuestionAnyButtonsDetails

    Function parameters

    • string headline

    • string question

    • string button_yes

    • string button_no

    • string details

    Return value

    • boolean

    228.3.2. FindRootPartitions

    Find all valid root partitions and place the result in rootPartitions. The partitions are mounted and unmounted again (to Installation::destdir). Loads a bunch of kernel modules.

    Return value

    • void

    228.3.3. GetInfoOfSelected

    Get the key what of the selected root partition.

    Function parameters

    • symbol what

    Return value

    • string

    228.3.4. IncompleteInstallationDetected

    Checks the partition whether it contains an incomplete installation.

    Function parameters

    • string mounted_to

    Return value

    • boolean - true if incomplete

    See also:

    • BNC #441919

    228.3.5. MountPartitions

    Mounting root-partition; reading fstab and mounting read partitions

    Function parameters

    • string root_device_current

    Return value

    • boolean

    228.3.6. SetSelectedToValid

    Set the selected root partition to some valid one. Only make sense if the number of valid root partition is one.

    Return value

    • void

    228.3.7. UnmountPartitions

    Unmount all mounted partitions, deactivate swaps, detach loopback devices. Uses list activated to make actions in reverse order.

    Function parameters

    • boolean keep_in_target

    Return value

    • void

    228.4. Global Variables

    228.5. Module Requirements

    228.5.1. Module Imports

    • Arch
    • Directory
    • FileSystems
    • FileUtils
    • Installation
    • Label
    • Linuxrc
    • Mode
    • ModuleLoading
    • Popup
    • Report
    • Stage
    • Storage
    • String
    • SuSERelease
    • Update

    228.5.2. Module Includes

    • partitioning/custom_part_dialogs.ycp