dracut initrd LVM LUKS swap resume

Hibernate on Debian with LVM ond LUKS

For some time I was looking for a solution to a strange problem:

My Laptop has an encrypted partition which contains two logical volumes: root and swap. According to the well-known practice I added the parameter resume=/path/to/swap to /etc/default/grub. Suspend worked, but the system did not resume. Even dmesg did not give any useful information. Actully it did not report that it tried to resume from somewhere. Some time passed reading lots of websites about setting up LVM on LUKS using kernel parameters without notable success.