dm-raid kernel module not added to initramfs
| Task Info (Flyspray) | |
|--------------------------|------------------------------------------------------------------------------------------|
| <small>Opened By</small> | <small>[Tom Yan (tom.ty89)](https://bugs.archlinux.org/user/14334)</small> |
| <small>Task ID</small> | <small>[71385](https://bugs.archlinux.org/task/71385)</small> |
| <small>Type</small> | <small>Bug Report</small> |
| <small>Project</small> | <small>Arch Linux</small> |
| <small>Category</small> | <small>Packages: Core</small> |
| <small>Version</small> | <small>None</small> |
| <small>OS</small> | <small>All</small> |
| <small>Opened</small> | <small>2021-06-28 17:50:01 UTC</small> |
| <small>Status</small> | <small>Assigned</small> |
| <small>Assignee</small> | <small>[Christian Hesse (eworm)](https://bugs.archlinux.org/user/6879)</small> |
| <small>Assignee</small> | <small>[Giancarlo Razzolini (grazzolini)](https://bugs.archlinux.org/user/20907)</small> |
### Details
Description:
LVM raid makes use of the kernel module dm-raid. However the lvm2 install hook does not include the module to the initramfs, causing raid type LV not being able to be activated. With a modified udev rule (that is included to the initramfs) I'm able to capture the following error (the LV happens to be not for the root filesystem, so I was wondering why it was quietly skipped, well so I thought):
pvscan[254] PV /dev/sda1 online, VG pi3 is complete.
pvscan[254] VG pi3 run autoactivation.
modprobe: FATAL: Module dm-raid not found in directory /lib/modules/5.11.4-1-ARCH
/usr/bin/modprobe failed: 1
Can't process LV pi3/chia: raid1 target support missing from kernel?
3 logical volume(s) in volume group "pi3" now active
pi3: autoactivation failed.
Additional info:
* package version(s) 2.03.11-5 (https://github.com/archlinux/svntogit-packages/blob/ad603bd38d20cacf9f76168980c680c191462358/trunk/lvm2_install#L8)
* config and/or log files etc.
* link to upstream bug report, if any
Steps to reproduce:
issue