diff --git a/init/init.go b/init/init.go index 8dce80c8..4ebb8b9f 100755 --- a/init/init.go +++ b/init/init.go @@ -362,9 +362,11 @@ func RunInit() error { bootLog := "/var/log/" if files, err := ioutil.ReadDir(bootLog); err == nil { for _, file := range files { - filePath := filepath.Join(bootLog, file.Name()) - filesToCopy = append(filesToCopy, filePath) - log.Debugf("Swizzle: Found %s to save", filePath) + if !file.IsDir() { + filePath := filepath.Join(bootLog, file.Name()) + filesToCopy = append(filesToCopy, filePath) + log.Debugf("Swizzle: Found %s to save", filePath) + } } } bootLog = "/var/log/boot/"