Hibernate on a swapfile on an encrypted btrfs partition

I’d like to be able to use hibernate on a swapfile on my encrypted btrfs partition. my lsblk is as follows:

NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda           8:0    1     0B  0 disk  
zram0       253:0    0   2.5G  0 disk  [SWAP]
nvme0n1     259:0    0 238.5G  0 disk  
├─nvme0n1p1 259:1    0   512M  0 part  /boot/efi
└─nvme0n1p2 259:2    0   238G  0 part  
  └─cr_root 254:0    0   238G  0 crypt /.snapshots
                                       /

I used this guide to create the swap partition: https://en.opensuse.org/SDB:Partitioning#Creating_a_btrfs_swapfile and my swapon --show is as follows:

NAME                   TYPE      SIZE USED PRIO
/var/lib/swap/swapfile file       12G   0B   -2
/dev/zram0             partition 2.5G 3.3M  100

I’ve also set up dracut to add the resume module. Beyond that, the information I’m not sure what to do.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.