From a15a3ad7811c5a8fb058751e22d54630da550cf9 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sun, 19 Mar 2023 23:04:16 -0700 Subject: [PATCH] filelist/modules: don't print "skipping..." when dir not found I think this was still causing some confusion, since it *might* look like a failure when in reality it's not. I think it's important that mkinitfs prints when it is adding something, and doesn't print when it is *not* adding something, so that it should be clear if something expected is missing and when something unexpected is included... without having to sort out which is which every time the output is read. --- internal/filelist/modules/modules.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/filelist/modules/modules.go b/internal/filelist/modules/modules.go index 7ff7ca7..7da47aa 100644 --- a/internal/filelist/modules/modules.go +++ b/internal/filelist/modules/modules.go @@ -70,7 +70,6 @@ func (m *Modules) List() (*filelist.FileList, error) { log.Printf("- Searching for kernel modules from %s", m.modulesListPath) fileInfo, err := os.ReadDir(m.modulesListPath) if err != nil { - log.Println("-- Unable to find dir, skipping...") return files, nil } for _, file := range fileInfo {