
functions
files
intro
|
|
RootPart.ycp
|
|
- Arvin Schnell <arvin@suse.de>
- Purpose: Responsible for searching of root partitions and
- mounting of target partitions.
|
|
Imports
- Directory
- FileSystems
- Linuxrc
- Mode
- ModuleLoading
- Packages
- Popup
- Storage
- Update
Includes
- partitioning/custom_part_dialogs.ycp
- partitioning/custom_part_helptexts.ycp
- partitioning/partition_defines.ycp
Global Functions
Local Variables
Local Functions
- AddMountedPartition (map <symbol, string> partinfo)
- AddToTargetMap ()
- CheckPartition (map partition)
- FSCKPartition (string partition)
- GetArchOfELF (string filename)
- GetRelease ()
- MakeNiceName (string longname)
- MountFSTab (list <map> fstab, string& message)
- PrepareCryptoTab (list <map> crtab, list <map>& fstab)
- RemoveFromTargetMap ()
- TranslateFSTab (list <map> fstab)
- check_root_device (string partition, list <map> fstab, string& found_partition)
- fsck_and_mount (string mount_point, string device, string mount_type)
- mount_var_if_required (list <map> fstab, string root_device_current, string& message)
- read_fstab_and_cryptotab (list <map>& fstab, list <map>& crtab)
- var_is_mounted ()
|
|
|
local activated -> list <map <symbol, string> >
|
|
List of mounted partitions, activated swap partitions and loop devices.
Amongst other things used for reversing action if mode is changed from
update to new installation or if root partition for update is changed.
The order of the list if of paramount importance.
Each item is list [string value, string type [, string device]] where:
Keys/values are:
`type The type, one of "mount", "swap" or "loop".
`device The device.
Link to SDB article concerning renaming of devices.
global GetInfoOfSelected (symbol what) -> string
|
|
Get the key what of the selected root partition.
- Parameters:
local MakeNiceName (string longname) -> string
|
|
Make a nice name for a system out of the long name.
- Parameters:
local GetRelease () -> string
|
|
Read release information.
global SetSelectedToValid () -> void
|
|
Set the selected root partition to some valid one. Only
make sense if the number of valid root partition is one.
local AddToTargetMap () -> void
|
|
local RemoveFromTargetMap () -> void
|
|
global UnmountPartitions (boolean keep_in_target) -> void
|
|
Unmount all mounted partitions, deactivate swaps, detach loopback
devices. Uses list activated to make actions in reverse order.
- Parameters:
local AddMountedPartition (map <symbol, string> partinfo) -> void
|
|
Add information about mounted partition to internal list.
- Parameters:
partinfo |
partinfo has to be list with exactly two strings,
see description of list "activated" |
local FSCKPartition (string partition) -> void
|
|
Check the filesystem of a partition.
- Parameters:
local fsck_and_mount (string mount_point, string device, string mount_type) -> boolean
|
|
- Parameters:
mount_point |
|
device |
|
mount_type |
|
local check_root_device (string partition, list <map> fstab, string& found_partition) -> boolean
|
|
Check that the root filesystem in fstab has the correct device.
- Parameters:
partition |
|
fstab |
|
found_partition |
|
global GetProductName () -> boolean
|
|
local TranslateFSTab (list <map> fstab) -> list <map>
|
|
- Parameters:
local read_fstab_and_cryptotab (list <map>& fstab, list <map>& crtab) -> boolean
|
|
- Parameters:
local PrepareCryptoTab (list <map> crtab, list <map>& fstab) -> boolean
|
|
- Parameters:
local var_is_mounted () -> boolean
|
|
local MountFSTab (list <map> fstab, string& message) -> boolean
|
|
- Parameters:
local mount_var_if_required (list <map> fstab, string root_device_current, string& message) -> boolean
|
|
- Parameters:
fstab |
|
root_device_current |
|
message |
|
global MountPartitions (string root_device_current) -> boolean
|
|
Mounting root-partition; reading fstab and mounting read partitions
- Parameters:
local GetArchOfELF (string filename) -> string
|
|
Get architecture of an elf file.
- Parameters:
local CheckPartition (map partition) -> map
|
|
Check a root partition and return map with infomations (see
variable rootPartitions).
- Parameters:
global FindRootPartitions () -> void
|
|
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.
|