[Bug 2031841] Re: initramfs-tools and dracut install different sets of kernel modules
Benjamin Drung
2031841 at bugs.launchpad.net
Fri Jan 19 13:16:05 UTC 2024
For the record, these commits refer to this bug:
Filter net kernel modules by symbol regexp from dracut
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/initramfs-tools/commit/?id=55a7cf12c037ccd14a0241aa8cab085f6f8590d8
Filter block kernel modules by symbol regex from dracut
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/initramfs-tools/commit/?id=7ef0f4f446abe98434dcffffd2410247f95b0983
Install all usb/typec kernel modules
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/initramfs-tools/commit/?id=aa8821f6ad59d9ce8f8cacddc5f8ae7e41178b71
Do not install ARM/RISCV specific modules on other architectures
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/initramfs-tools/commit/?id=2df78bbb143884b9601a32608e12e43d40ccb0b0
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2031841
Title:
initramfs-tools and dracut install different sets of kernel modules
Status in initramfs-tools package in Ubuntu:
Fix Released
Bug description:
initramfs-tools and dracut install different sets of kernel modules. Either these modules are not needed for booting or are missing in the other project.
dracut-install can filter modules by symbol (--mod-filter-symbol) to select modules more fine-grain. Harmonize the set of modules.
Adopt the install rules from dracut to get rid of modules that are
shipped in initramfs-tools, but not in dracut. Following kernel
modules will be kept since they are mentioned in the initramfs-tools
code:
* via hidden_dep_add_modules: psmouse mlx5_ib mlx4_ib
* via framebuffer hook: =drivers/gpu vga16fb =drivers/char/agp
* explicit in auto_add_modules: extcon-usb-gpio extcon-usbc-cros-ec cros_ec_spi
* via hw_random in auto_add_modules: =drivers/char/hw_random
* via fb in auto_add_modules: pwm-cros-ec pwm_bl
* ignored difference for now: =drivers/mmc
* via virtual in auto_add_modules: hv_utils
* not analyzed yet: mhi_ep mhi mhi_pci_generic i2c-mux i2c-mux-gpio i2c-mux-ltc4306 i2c-mux-mlxcpld i2c-mux-pca9541 i2c-mux-pca954x i2c-mux-reg c67x00
Following modules will be removed from initramfs-tools with this
change, but are in dracut (pulled in as dependency): intel_pmc_bxt
kempld-core rave-sp retu-mfd nandcore bch
If that change removed too much, we need to add it back and also
report that to dracut to add it there as well.
Test setup: mantic schroot with linux 6.3.0-7-generic and following
packages: linux-image-generic,zstd,busybox-initramfs,cryptsetup-
initramfs,isc-dhcp-client,kbd,lvm2,mdadm,ntfs-3g,plymouth,plymouth-
theme-spinner,initramfs-tools,dracut-core,dracut-config-
generic,dcracut-network
initramfs generation with dracut: dracut --regenerate-all --force -q
--add-drivers "=drivers/char/agp hv_utils =drivers/mmc pwm-cros-ec
pwm_bl mlx4_ib extcon-usb-gpio extcon-usbc-cros-ec cros_ec_spi
=drivers/gpu vga16fb psmouse mlx5_ib =drivers/char/hw_random"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2031841/+subscriptions
More information about the foundations-bugs
mailing list