boot-img: better error
This commit is contained in:
parent
908ff595a3
commit
d2b212ae6b
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"archive/tar"
|
"archive/tar"
|
||||||
"compress/gzip"
|
"compress/gzip"
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
@ -107,7 +108,7 @@ func setupBootImage(bootImg *os.File, ctx *renderContext) (err error) {
|
|||||||
|
|
||||||
err = syscall.Mount(dev+"p1", tempDir, "vfat", 0, "")
|
err = syscall.Mount(dev+"p1", tempDir, "vfat", 0, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return fmt.Errorf("failed to mount %s to %s: %v", dev+"p1", tempDir, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user