OSImage represents a bootable OS package.
| 12 | |
| 13 | // OSImage represents a bootable OS package. |
| 14 | type 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 | |
| 29 | var ( |
| 30 | osimageMap = map[string]func(*cpio.Archive) (OSImage, error){ |
no outgoing calls
no test coverage detected
searching dependent graphs…