filelist/modules: print a message when including modules from deviceinfo

fixes https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/24
This commit is contained in:
Clayton Craft
2023-03-12 20:34:40 -07:00
parent 1ac85b12fe
commit 27e271b904

View File

@@ -53,6 +53,8 @@ func (m *Modules) List() (*filelist.FileList, error) {
}
// slurp up given list of modules
if len(m.modulesList) > 0 {
log.Printf("-- Including kernel modules from deviceinfo")
for _, module := range m.modulesList {
if modFilelist, err := getModule(module, modDir); err != nil {
return nil, fmt.Errorf("unable to get modules from deviceinfo: %w", err)
@@ -62,6 +64,7 @@ func (m *Modules) List() (*filelist.FileList, error) {
}
}
}
}
// slurp up modules from lists in modulesListPath
log.Printf("- Searching for kernel modules from %s", m.modulesListPath)