How to setup and enable hibernation on CachyOs?

Hello, I would like to know how to setup and enable hibernation on CachyOs? Thanks in advance for your help

  1. add the resume hook to your initramfs
  2. add your swap to the kernel command line, as example `resume=/dev/nvme0n1p3
  3. run hibernate
2 Likes

How do I add the resume hook?
Iā€™m using refind boot manager.