Regenerate kernel image from chroot

The problem is: when using dracut in a chroot environment, it looks for the wrong kernel module directory with version 5.11 It happens because I use netinst image and the kernel installed on the target system was downloaded during install - 5.12. dracut looks for a folder according to the active kernel (live cd, 5.11) that does not match the image and modules dir in the chroot

Hi @rm1d11. For tech support questions, please use https://ask.fedoraproject.org/. Thanks.