boot.img: more verbose losetup run

This commit is contained in:
Mikaël Cluseau 2019-12-23 11:32:55 +01:00
parent 984b2e0057
commit 49a16fe550

View File

@ -81,7 +81,10 @@ func setupBootImage(bootImg *os.File, ctx *renderContext) (err error) {
return
}
devb, err := exec.Command("losetup", "--find", "--show", "--partscan", bootImg.Name()).CombinedOutput()
log.Print("running losetup...")
cmd := exec.Command("losetup", "--find", "--show", "--partscan", bootImg.Name())
cmd.Stderr = os.Stderr
devb, err := cmd.Output()
if err != nil {
return
}