I’m trying to configure hibernation and looks like I overlooked something.
It’s a standard EOS setup with systemd-boot, dracut and swap partition roughly the size of RAM. According to Arch Wiki, if it’s UEFI system and systemd version >= 255, hibernation should be working without any explicit configuration, so my whole setup process was basically this:
- created
/etc/dracut.conf.d/resume.confcontaining:
add_dracutmodules+=" resume "
- regenerated images with
sudo dracut-rebuildand rebooted
lsinitrd -m shows resume module, yet hibernation still doesn’t work. With both lts and mainline kernels. Every time - it’s just like fresh boot.
Would really appreciate any ideas/suggestions as to where I should start looking in order to sort it out
~ ❯ lsinitrd -m
Image: /efi/5fc0f8f4b17443e1863b494bc5c40cab/6.6.21-1-lts/initrd: 61M
========================================================================
Early CPIO image
========================================================================
drwxr-xr-x 3 root root 0 Mar 12 12:37 .
-rw-r--r-- 1 root root 2 Mar 12 12:37 early_cpio
drwxr-xr-x 3 root root 0 Mar 12 12:37 kernel
drwxr-xr-x 3 root root 0 Mar 12 12:37 kernel/x86
drwxr-xr-x 2 root root 0 Mar 12 12:37 kernel/x86/microcode
-rw-r--r-- 1 root root 14336 Mar 12 12:37 kernel/x86/microcode/GenuineIntel.bin
========================================================================
Version: dracut-059
dracut modules:
systemd
systemd-initrd
i18n
kernel-modules
kernel-modules-extra
resume
rootfs-block
terminfo
udev-rules
dracut-systemd
usrmount
base
fs-lib
shutdown
========================================================================
~ ❯ lsinitrd /efi/5fc0f8f4b17443e1863b494bc5c40cab/6.6.21-1-lts/initrd | grep resume
resume
-rwxr-xr-x 1 root root 26936 Mar 3 18:04 usr/lib/systemd/systemd-hibernate-resume
-rwxr-xr-x 1 root root 26976 Mar 3 18:04 usr/lib/systemd/system-generators/systemd-hibernate-resume-generator