These commands did the trick for me. I did not see the message anymore.
Is there somehow a relation between dracut and zfs showing this message anyway ?
Usually that error is caused by not creating a hostid prior to creating the pool, by sharing a pool between multiple installs or by mounting the pool externally to the system.
Typically the solution is to create a hostid using sudo zgenhostid. Then export and reimport the pool. Depending on when you import the pool, you may need to then run sudo dracut-rebuild so the new hostid gets in the initrd.
What you did seems like it will not be a long-term fix since you removed the hostid you generated.