pkg

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RAWDiskSize is the minimum size disk we can create.
	RAWDiskSize = 1246
)

Variables

This section is empty.

Functions

func CreateISO added in v0.7.0

func CreateISO(iso, dir string) error

CreateISO creates an iso by invoking the `grub-mkrescue` command.

func CreateRawDisk

func CreateRawDisk() (img string, err error)

CreateRawDisk creates a raw disk by invoking the `dd` command.

func Loattach

func Loattach(img string) (dev string, err error)

Loattach attaches a loopback device by inoking the `losetup` command.

func Lodetach

func Lodetach(img string) (err error)

Lodetach detaches a loopback device by inoking the `losetup` command.

func SourceDateEpoch added in v0.12.0

func SourceDateEpoch() (int64, bool, error)

SourceDateEpoch returns parsed value of SOURCE_DATE_EPOCH.

func TouchFiles added in v0.12.0

func TouchFiles(root string) error

TouchFiles updates mtime for all the files under root if SOURCE_DATE_EPOCH is set.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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