Your config file in /etc/dracut.conf.d/ is exactly like this?
add_dracutmodules+=" resume "
install_items+=" /usr/lib/systemd/system/systemd-hibernate-resume.service "
The “padding” spaces are needed.
After setting the config with the resume modules you must rebuild the init images.
sudo dracut-rebuild