Dracut cannot load network module

Hi,
i am trying to create initramfs with dracut for booting from network. To do it, one needs to use dracut network and nfs modules. However, the network module depends on the network-legacy one, which seems to be missing in the fedora 40 distribution.
Thanks,
Yuri