Documentation ¶
Overview ¶
Package packer is a gokrazy-internal package which provides functionality shared between gokr-packer and rtr7-recovery-init.
Index ¶
- Constants
- Variables
- func BuildDir(importPath string) string
- func BuildDirOrMigrate(importPath string) (string, error)
- func DefaultTags() []string
- func Env() []string
- func InitDeps(initPkg string) []string
- func PackageDir(pkg string) (string, error)
- func PackageDirs(pkgs []string) ([]string, error)
- func PermSizeInKB(devsize uint64) uint32
- func TargetArch() string
- type BuildEnv
- type Pack
- type Pkg
Constants ¶
View Source
const MB = 1024 * 1024
Variables ¶
View Source
var ( FAT = byte(0xc) Linux = byte(0x83) SquashFS = Linux // SquashFS does not have a dedicated type )
Functions ¶
func BuildDirOrMigrate ¶
func DefaultTags ¶
func DefaultTags() []string
func PackageDir ¶
func PackageDirs ¶
PackageDirs returns the package directories, in the same order as the argument
func PermSizeInKB ¶
func TargetArch ¶
func TargetArch() string
Types ¶
type Pack ¶
type Pack struct { Partuuid uint32 UsePartuuid bool UseGPTPartuuid bool UseGPT bool ExistingEEPROM struct { PieepromSHA256 string // pieeprom.sig VL805SHA256 string // vl805.sig } }
Pack represents one pack process.
func NewPackForHost ¶
func (*Pack) GPTPARTUUID ¶
GPTPARTUUID derives a GPT partition GUID for the specified partition.
All gokrazy GPT partition GUIDs start with the same prefix and contain the hostname-derived hash + the partition number in the last block (“node identifier”).
func (*Pack) ModifyCmdlineRoot ¶
ModifyCmdlineRoot() returns true if the -kernel_pkgs cmdline.txt file needs any modifications. This will be true on most gokrazy installations.
Click to show internal directories.
Click to hide internal directories.