cmd/mkinitfs: allow installing modules in the initramfs-extra archive (MR 32)
fixes: https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/20
This commit is contained in:
@@ -111,6 +111,8 @@ func main() {
|
||||
hookfiles.New("/etc/mkinitfs/files-extra"),
|
||||
hookscripts.New("/usr/share/mkinitfs/hooks-extra"),
|
||||
hookscripts.New("/etc/mkinitfs/hooks-extra"),
|
||||
modules.New([]string{}, "/usr/share/mkinitfs/modules-extra"),
|
||||
modules.New([]string{}, "/etc/mkinitfs/modules-extra"),
|
||||
osksdl.New(devinfo.MesaDriver),
|
||||
}); err != nil {
|
||||
log.Println(err)
|
||||
|
@@ -97,11 +97,11 @@ create/manage. mkinitfs reads configuration from */usr/share/mkinitfs* first, an
|
||||
under */hooks-extra* for the initramfs-extra.
|
||||
|
||||
## /usr/share/mkinitfs/modules, /etc/mkinitfs/modules
|
||||
## /usr/share/mkinitfs/modules-extra, /etc/mkinitfs/modules-extra
|
||||
|
||||
Files with the *.modules* extention in these directories are lists of
|
||||
kernel modules to include in the initramfs. No modules are placed in
|
||||
the initramfs-extra archive. Individual modules and directories can be
|
||||
listed in the files here. Globbing is also supported.
|
||||
kernel modules to include in the initramfs. Individual modules and
|
||||
directories can be listed in the files here. Globbing is also supported.
|
||||
|
||||
Modules are installed in the initramfs archive under the same path they
|
||||
exist on the system where mkinitfs is executed.
|
||||
|
Reference in New Issue
Block a user