mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Do not log information about empty sections
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
e25033f70d
commit
96ae98d2d5
@ -159,7 +159,9 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
|
||||
}
|
||||
|
||||
// convert init images to tarballs
|
||||
log.Infof("Add init containers:")
|
||||
if len(m.Init) != 0 {
|
||||
log.Infof("Add init containers:")
|
||||
}
|
||||
for _, ii := range m.Init {
|
||||
log.Infof("Process init image: %s", ii)
|
||||
init, err := ImageExtract(ii, "", enforceContentTrust(ii, &m.Trust), pull)
|
||||
@ -170,7 +172,9 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
|
||||
initrdAppend(iw, buffer)
|
||||
}
|
||||
|
||||
log.Infof("Add onboot containers:")
|
||||
if len(m.Onboot) != 0 {
|
||||
log.Infof("Add onboot containers:")
|
||||
}
|
||||
for i, image := range m.Onboot {
|
||||
log.Infof(" Create OCI config for %s", image.Image)
|
||||
config, err := ConfigToOCI(&image)
|
||||
@ -187,7 +191,9 @@ func buildInternal(m *Moby, name string, pull bool) []byte {
|
||||
initrdAppend(iw, buffer)
|
||||
}
|
||||
|
||||
log.Infof("Add service containers:")
|
||||
if len(m.Services) != 0 {
|
||||
log.Infof("Add service containers:")
|
||||
}
|
||||
for _, image := range m.Services {
|
||||
log.Infof(" Create OCI config for %s", image.Image)
|
||||
config, err := ConfigToOCI(&image)
|
||||
|
@ -430,7 +430,9 @@ func filesystem(m *Moby) (*bytes.Buffer, error) {
|
||||
tw := tar.NewWriter(buf)
|
||||
defer tw.Close()
|
||||
|
||||
log.Infof("Add files:")
|
||||
if len(m.Files) != 0 {
|
||||
log.Infof("Add files:")
|
||||
}
|
||||
for _, f := range m.Files {
|
||||
log.Infof(" %s", f.Path)
|
||||
if f.Path == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user