Can't go to Hibernation
Hello everyone. I'm using bazzite-gnome-nvidia-open:stable and can't configure hibernation I followed the instructions on https://docs.bazzite.gg/Advanced/swapfile/ and all commands worked. When running swapon it shows the swapfile created, but when trying to go to hibernation with "systemctl hibernate -i" it shows "Call to Hibernate failed: Access denied".
Suspend works fine, only hibernation that I can't get it working.
I appreciate any help.
Suspend works fine, only hibernation that I can't get it working.
I appreciate any help.

Bazzite is a custom image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices.

Solution
lsblk -f to get the UUID of the partition
btrfs inspect-internal map-swapfile -r /var/swpa/swapfile (only works on btrfs file systems) to get the resume_offset
then set the kernel partition with
rpm-ostree kargs --append-if-missing="resume=UUID={UUID_partition}"
rpm-ostree kargs --append-if-missing="resume_offset={resume_offset}"
btrfs inspect-internal map-swapfile -r /var/swpa/swapfile (only works on btrfs file systems) to get the resume_offset
then set the kernel partition with
rpm-ostree kargs --append-if-missing="resume=UUID={UUID_partition}"
rpm-ostree kargs --append-if-missing="resume_offset={resume_offset}"