MCPcopy
hub / github.com/u-root/u-root / OSImage

Interface OSImage

pkg/boot/boot.go:14–27  ·  view source on GitHub ↗

OSImage represents a bootable OS package.

Source from the content-addressed store, hash-verified

12
13// OSImage represents a bootable OS package.
14type OSImage interface {
15 // ExecutionInfo prints information about the OS image. A user should
16 // be able to use the kexec command line tool to execute the OSImage
17 // given the printed information.
18 ExecutionInfo(log *log.Logger)
19
20 // Execute kexec's the OS image: it loads the OS image into memory and
21 // jumps to the kernel's entry point.
22 Execute() error
23
24 // Pack writes the OS image to the modules directory of sw and the
25 // package type to package_type of sw.
26 Pack(sw cpio.RecordWriter) error
27}
28
29var (
30 osimageMap = map[string]func(*cpio.Archive) (OSImage, error){

Callers 10

NetbootFunction · 0.65
NetbootFunction · 0.65
displayStateHandleMethod · 0.65
displayWifiFunction · 0.65
displayStateHandleMethod · 0.65
displaySosHandleMethod · 0.65
displayStateHandleMethod · 0.65
PackMethod · 0.65
TestLinuxImageFunction · 0.65
TestBootPackageFunction · 0.65

Implementers 3

multibootImagepkg/boot/multiboot.go
mockOSImagepkg/boot/package_test.go
LinuxImagepkg/boot/linux.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…