in my case the problem was caused due to the swap device being listed in /etc/initramfs-tools/conf.d/resume . it would be nice if there was some hint when the swap removal fails because of this.<br>