github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/pkg/boot/multiboot.go (about) 1 // Copyright 2018 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package boot 6 7 import ( 8 "fmt" 9 "log" 10 11 "github.com/u-root/u-root/pkg/cpio" 12 ) 13 14 // multibootImage is a multiboot-formated OSImage. 15 type multibootImage struct{} 16 17 var _ OSImage = &multibootImage{} 18 19 func newMultibootImage(a *cpio.Archive) (OSImage, error) { 20 return nil, fmt.Errorf("multiboot images unimplemented") 21 } 22 23 // ExecutionInfo implements OSImage.ExecutionInfo. 24 func (multibootImage) ExecutionInfo(log *log.Logger) { 25 log.Printf("Multiboot images are unsupported") 26 } 27 28 // Execute implements OSImage.Execute. 29 func (multibootImage) Execute() error { 30 return fmt.Errorf("multiboot images unimplemented") 31 } 32 33 // Pack implements OSImage.Pack. 34 func (multibootImage) Pack(sw cpio.RecordWriter) error { 35 return fmt.Errorf("multiboot images unimplemented") 36 }