gpt

package
v0.0.0-...-1b3b568 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package gpt provides a minimal reader for partition tables in GPT (GUID partition tables) format, just enough for the rootdev package to match block devices to root=PARTUUID= kernel parameters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GUIDFromBytes

func GUIDFromBytes(b []byte) string

GUIDFromBytes returns the canonical string representation of the specified GUID.

func PartitionUUIDs

func PartitionUUIDs(r io.ReaderAt) []string

PartitionUUIDs returns the ids of all GPT partitions on the disk. Currently, only the first partition id will be returned, as that is all that gokrazy currently can ever match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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