Merge pull request #1616 from anderbubble/cpio-error-verbosity
Log cpio errors more prominently
This commit is contained in:
@@ -83,6 +83,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Process nodes.conf path dynamically from config. #1595, #1596, #1569
|
||||
- Split overlays into distribution and site overlays. #831
|
||||
- Added note to booting userdoc for removing machine-id. #1609
|
||||
- Log cpio errors more prominently. #1615
|
||||
|
||||
### Removed
|
||||
|
||||
|
||||
@@ -374,8 +374,10 @@ func CpioCreate(
|
||||
}()
|
||||
|
||||
out, err := proc.CombinedOutput()
|
||||
if len(out) > 0 {
|
||||
wwlog.Debug(string(out))
|
||||
if err != nil {
|
||||
wwlog.Error("cpio failed: %s", out)
|
||||
} else if len(out) > 0 {
|
||||
wwlog.Debug("cpio: %s", out)
|
||||
}
|
||||
|
||||
return FirstError(err, <-err_in)
|
||||
|
||||
Reference in New Issue
Block a user