RootPart.ycp |
|
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.
Get the key what of the selected root partition.
- Parameters:
-
what
Set the selected root partition to some valid one. Only make sense if the number of valid root partition is one.
Unmount all mounted partitions, deactivate swaps, detach loopback devices. Uses list activated to make actions in reverse order.
- Parameters:
-
keep_in_target
Add information about mounted partition to internal list.
- Parameters:
-
partinfo partinfo has to be list with exactly two strings, see description of list "activated"
Check the filesystem of a partition.
- Parameters:
-
partition
Mount partition on specified mount point
- Parameters:
-
mount_point string mount point to monut the partition at device string device to mount mount_type string filesystem type to be specified while mounting
- Return value:
-
nil on success, error description on fail
Check filesystem on a partition and mount the partition on specified mount point
- Parameters:
-
mount_point string mount point to monut the partition at device string device to mount mount_type string filesystem type to be specified while mounting
- Return value:
-
nil on success, error description on fail
Check that the root filesystem in fstab has the correct device.
- Parameters:
-
partition fstab found_partition
Find a monut poing in fstab
- Parameters:
-
fstab a list of fstab entries mountpoint string a mount point to find
- Return value:
-
the found partition
- Parameters:
-
fstab
- Parameters:
-
fstab crtab
- Parameters:
-
crtab fstab
Check if specified mount point is mounted
- Parameters:
-
mountpoint the mount point to be checked
- Return value:
-
true if it is mounted
- Parameters:
-
fstab message
Mount /var partition
- Parameters:
-
device string device holding the /var subtree
- Return value:
-
nil on success, error description on fail
Check if /var partition is needed, mount it if it is
- Parameters:
-
fstab a list of fstab entries root_device_current string current root device
- Return value:
-
nil on success, error description on fail
Mounting root-partition; reading fstab and mounting read partitions
- Parameters:
-
root_device_current
Get architecture of an elf file.
- Parameters:
-
filename
Check a root partition and return map with infomations (see variable rootPartitions).
- Parameters:
-
partition
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.