filelist/modules: print a message when including modules from deviceinfo
fixes https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/24
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user