Skip to content

Commit

Permalink
add example for boot
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicalTux committed Apr 11, 2020
1 parent 8811a1b commit 9442269
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions image_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func NewWriter() (*ImageWriter, error) {
}, nil
}

// AddBootEntry adds a El Torito boot entry to the image.
// Typical usage (BootCatalogEntry defaults to X86 with no emulation)
//
// err = AddBootEntry(&BootCatalogEntry{BootInfoTable: true}, NewItemFile("syslinux/isolinux.bin"), "isolinux/isolinux.bin")
func (iw *ImageWriter) AddBootEntry(boot *BootCatalogEntry, data Item, filePath string) error {
directoryPath, fileName := manglePath(filePath)

Expand Down

0 comments on commit 9442269

Please sign in to comment.