partitions

package
v2.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPartitions

func GetAllPartitions() (v1.PartitionList, error)

GetAllPartitions returns all partitions in the system for all disks

func GetEfiPartition added in v2.7.13

func GetEfiPartition() (*v1.Partition, error)

GetEfiPartition returns the EFI partition by looking for the partition with the label "COS_GRUB"

func GetPartitionFS

func GetPartitionFS(partition string) (string, error)

GetPartitionFS gets the FS of a partition given

func GetPartitionViaDM

func GetPartitionViaDM(fs v1.FS, label string) *v1.Partition

GetPartitionViaDM tries to get the partition via devicemapper for reset We only need to get all this info due to the fS that we need to use to format the partition Otherwise we could just format with the label ¯\_(ツ)_/¯ TODO: store info about persistent and oem in the state.yaml so we can directly load it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL