Storage.ycp |
|
Imports
Includes
Global Functions
Local Functions |
Get Device Name
- Parameters:
-
disk Disk partition
- Return value:
-
device name
- Parameters:
-
device
Find next free loop device.
- Parameters:
-
start
- Return value:
-
loop_dev ( e.g.: /dev/loop1 )
Get List of swap partitions
- Return value:
-
List of swap partitions
Delete the partition table and disk label of device
- Parameters:
-
disk
Search in the list partitions for windows partitions and add the key "mount" to the found windows partitions.
- Parameters:
-
partitions primary max_prim foreign_nr
- Return value:
-
new partitions with windows mountpoints
mark swap-partitions with pseudo Mountpoint swap in targetMap
- Parameters:
-
target Disk map
- Return value:
-
modified target
Check if a disk is a real disk and not RAID or LVM
- Parameters:
-
entry
- Return value:
-
true if real disk
Determine if there is any Linux partition on this system.
If there is none, we don't need to ask if the user wants to update or boot an installed system - he can only do a new installation anyway. No time-consuming or dangerous operations should be performed here, only simple checks for existence of a Linux (type 83) partition.
- Return value:
-
true if there is anything that might be a Linux partition
Get list of all Partitions on all real disks
- Return value:
-
Partition list
Get list of all Linux Partitions on all real disks
- Return value:
-
Partition list
Check if swap paritition is availbe on a disk
- Parameters:
-
disk Disk to be checked
- Return value:
-
true if swap available.
Get used real disks
- Parameters:
-
tg Target map
- Return value:
-
disks List of disks
CheckForLvmRootFs --------------------------------------------------------------------- check if the root filesystem is a lvm logical volume
CheckForEvmsRootFs --------------------------------------------------------------------- check if the root filesystem is a evms volume