get UUID for swap partition & lucs encrypted partition
[werwolf@workbook] ~
❯ sudo lsblk -o +UUID
[sudo] пароль для root:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS UUID
nvme0n1 259:0 0 476,9G 0 disk
***CUTTED***
└─nvme0n1p4 259:4 0 16,9G 0 part XXX
└─cr_swap 254:0 0 16,9G 0 crypt [SWAP] YYY
XXX
- UUID for luks encrypted partition with swap partition
YYY
- UUID for swap partition
add to crypttab x-initrd.attach,force
to swap
[werwolf@workbook] ~
❯ sudo cat /etc/crypttab | grep swap
cr_swap UUID=XXX /etc/main.key x-initrd.attach,force
add swap to fstab
[werwolf@workbook] ~
❯ cat /etc/fstab | grep swap
UUID=YYY swap swap defaults 0 0
add swap to resume to kernel cmdline
[werwolf@workbook] ~
❯ cat /etc/default/grub | grep resume
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=UUID=YYY quiet security=apparmor delayacct"
regenerate initrd & grub
sudo dracut -f && sudo update-bootloader
after reboot you can try use hibernation