Grub has similar concept of modules like the Linux kernel.
They are a bunch of precompiled files which usually live at boot/grub/x86_64-efi/<module_name>.mod
on the rootfs.
The module needs to be loaded before it can be used. "used" means that you can you can run a particular new command in grub.cfg
. A way you install a module is having a insmod <module_name>
.
Is it possible to embed a grub module withing the grub binary instead of having the modules living on the rootfs?