Situation:
1) I am using systemd to suspend to disk using: systemctl hibernate
2) I have mounted a filesystem on an encrypted block device, that I suspend using dmsetup suspend device
in order to wipe the key before I go into hibernation.
The problem:
The hibernation hangs at
systemd-sleep[7366]: Suspending system...
kernel: PM: Hibernation mode set to 'platform'
kernel: PM: Syncing filesystems ...
If I resume (dmsetup resume device
), then the syncing can be completed and hibernation will continue
Is there another way to either issue the suspend command AFTER the sync when entering hibernation? Or another way to wipe the encryption keys, that allows me to safely enter hibernation (besides encryption the swap partition)?