partitions

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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(logger *types.KairosLogger) (types.PartitionList, error)

GetAllPartitions returns all partitions in the system for all disks

func GetEfiPartition added in v2.7.13

func GetEfiPartition(logger *types.KairosLogger) (*types.Partition, error)

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

func GetMountPointByLabel added in v2.14.1

func GetMountPointByLabel(label string) string

GetMountPointByLabel will try to get the mountpoint by using the label only so we can identify mounts the have been mounted with /dev/disk/by-label stanzas

func GetPartitionViaDM

func GetPartitionViaDM(fs v1.FS, label string) *types.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