Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(90kernel-modules): MMC and NVMe on kernels 6.0+
Commit 6f8191fdf41 ("block: simplify disk shutdown") in Linux kernels 6.0 and above renamed blk_cleanup_disk to blk_mq_destroy_queue. Adapt code to handle both cases. Because of this the kernel module mmc_block.ko was not included into initrd on kernel 6.1: dracut-install: No symbol or path match for '/lib/modules/6.1.0-generic-0.rc7.1rosa2021.1-x86_64//kernel/drivers/mmc/core/mmc_block.ko.zst while on kernel 5.15 it was included: dracut-install: Handling /lib/modules/5.15.79-generic-1rosa2021.1-x86_64//kernel/drivers/mmc/core/mmc_block.ko.zst dracut-install: Module mmc_block: symbol blk_cleanup_queue matched inclusion filter It made booting OS from root on /dev/mmcblk* impossible. Just adding blk_mq_destroy_queue was not enough to make mmc_block.ko be included into initrd (maybe because call of blk_cleanup_disk() was removed and call of blk_mq_destroy_queue() was not added). So also adding blk_mq_alloc_request which is used from mmc_block. Fixes: #2102
- Loading branch information