Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#53316 - [mkinitcpio] Exclude modprobe blacklisted modules to even further decrease init file size
Attached to Project:
Arch Linux
Opened by Ceriel Jacobs (cj1) - Tuesday, 14 March 2017, 23:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 01 October 2017, 18:07 GMT
Opened by Ceriel Jacobs (cj1) - Tuesday, 14 March 2017, 23:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 01 October 2017, 18:07 GMT
|
DetailsDescription: when having modules configured to be blacklisted in /etc/modprobe.d/modprobe.conf, that modprobe.conf is nicely copied in build hook: [/usr/lib/initcpio/install/modconf].
And in the next build hook the blacklisted (modules not wished to be loaded) are copied without any purpose: ... adding module: sdhci-acpi adding module: sdhci adding module: mmc_core adding module: sdhci-pci adding module: mmc_block ... and finally: overwriting file: /etc/modprobe.d/modprobe.conf Additional info: * mkinitcpio 22 * /etc/modprobe.d/modprobe.conf: --- blacklist tpm_tis blacklist joydev blacklist sdhci_pci blacklist sdhci_acpi blacklist sdhci blacklist mmc_core blacklist mmc_block blacklist snd_hda_intel blacklist snd_intel_sst_acpi blacklist snd_soc_rt5640 blacklist snd_soc_rt5645 --- It would be nice when modprobe blacklist modules are not added to the initramfs file using mkinitcpio. |
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 01 October 2017, 18:07 GMT
Reason for closing: Won't fix
Additional comments about closing: Blacklisting is an odd use case to begin with. If you want to slim down your initramfs, whitelist instead.
Sunday, 01 October 2017, 18:07 GMT
Reason for closing: Won't fix
Additional comments about closing: Blacklisting is an odd use case to begin with. If you want to slim down your initramfs, whitelist instead.
Also, if you know exactly what you need, then add exactly what you need? Is there really a need to complicate the code further just to save a few KiB of a cheap resource? Do you have measurable gains in boot time by excluding these modules? Is there opportunity cost from freeing up this disk space?
Disabling hardware in firmware doesn't help.
Excluding the blacklisted modules doesn't need to be automated, though preferred. Currently there is only a mechanism (that I am aware of) to **include** modules (MODULES=... in mkinitcpio.conf). I would love a configuration possibility to **exclude** modules.
I didn't know how to add exactly what I need. Until I spotted https://wiki.archlinux.org/index.php/Minimal_initramfs, which is now also linked from https://wiki.archlinux.org/index.php/Mkinitcpio