Merge pull request #1616 from anderbubble/cpio-error-verbosity

Log cpio errors more prominently
This commit is contained in:
Christian Goll
2025-01-08 09:27:50 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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)