1 ## cryptsetup open $swap_device $crypt_swap_name
2 ## get uuid using e.g. lsblk -f
3 swap_device=/dev/disk/by-uuid/2788eb78-074d-4424-9f1d-ebffc9c37262
4 crypt_swap_name=cryptswap
6 ## one can optionally provide a keyfile device and path on this device
8 keyfile_device=/dev/mapper/cryptroot
9 keyfile_filename=etc/keyfile-cryptswap
11 ## additional arguments are given to mount for keyfile_device
12 ## has to start with --options (if so desired)
13 #keyfile_device_mount_options="--options=subvol=__active/__"
15 ## additional arguments are given to cryptsetup
16 ## --allow-discards options is desired in case swap is on SSD partition
17 cryptsetup_options="--type luks"