pkg

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pkg contains the installer cmd logic.

Index

Constants

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

Variables

This section is empty.

Functions

func CreateISO

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

func SourceDateEpoch() (int64, bool, error)

SourceDateEpoch returns parsed value of SOURCE_DATE_EPOCH.

func TouchFiles

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
Package install provides the installation routine.
Package install provides the installation routine.
Package ova implements OVA creation.
Package ova implements OVA creation.

Jump to

Keyboard shortcuts

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