I'm trying to enable hibernate on my installation. I have already added the resume hook in /etc/mkinitcpio.conf and executed sudo mkinitcpio -P
In the /etc/default/grub I have the line GRUB_CMDLINE_LINUX_DEFAULT='quiet resume=UUID=2f317f0e-6ce3-43ac-bdcf-84f33f7b33d3' but when I restart my pc it says no device for hibernate found.
cat /proc/cmdlinegivesBOOT_IMAGE=/vmlinuz-linux root=UUID=1b7d2a13-c0af-482c-9794-955a0fe3a760 rw quiet
So i figured that somehow the changes I made in the /etc/default/grub are not being reflected in grub. What I am I missing here?

Solved it. I didn't realize that KaOS uses systemd-boot.
I added options resume=UUID=2f317f0e-6ce3-43ac-bdcf-84f33f7b33d3 in/boot/loader/loader.confand now hibernate is working.