[arch-general] [mkinitcpio] keeping modules added by install file
I'm working on install and hook files for mkinitcpio and I'm adding some modules to the initramfs image with the install file. My problem is that the modules I add with the install file get removed when the autodetect hook runs. Is there any way to keep some modules when the autodetect hook runs as if they were defined in the MODULES array in mkinitcpio.conf? I know I'm seeing the expected behavior but I need some modules to be included in the initramfs even if they are not in use in the running system, and it would be nice to have the smallest initramfs as possible. -- Mauro Santos
On 11/09/2015 02:20 PM, Mauro Santos wrote:
I'm working on install and hook files for mkinitcpio and I'm adding some modules to the initramfs image with the install file.
My problem is that the modules I add with the install file get removed when the autodetect hook runs.
Is there any way to keep some modules when the autodetect hook runs as if they were defined in the MODULES array in mkinitcpio.conf?
I know I'm seeing the expected behavior but I need some modules to be included in the initramfs even if they are not in use in the running system, and it would be nice to have the smallest initramfs as possible.
Well, you could install a custom mkinitcpio.conf and use it in the preset. The custom mkinitcpio.conf can source the system one. -- Eli Schwartz
On 09-11-2015 20:42, Eli Schwartz wrote:
Well, you could install a custom mkinitcpio.conf and use it in the preset. The custom mkinitcpio.conf can source the system one.
This will work. It will be a custom mkinitcpio.conf calling another custom mkinitcpio.conf but it works like I want it to :) Thanks for the suggestion. -- Mauro Santos
participants (2)
-
Eli Schwartz
-
Mauro Santos