summarylogtreecommitdiffstats
path: root/openswap.conf
blob: 0b11f9e4edff91eb9d410c47df3683f64f05201c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## cryptsetup open $swap_device $crypt_swap_name
swap_device=/dev/disk/by-uuid/2788eb78-074d-4424-9f1d-ebffc9c37262
crypt_swap_name=cryptswap

## one can optionally provide a keyfile device and path on this device
## to the keyfile
keyfile_device=/dev/mapper/cryptroot
keyfile_filename=etc/keyfile-cryptswap

## additional arguments are given to mount for keyfile_device
## has to start with --options (if so desired)
#keyfile_device_mount_options="--options=subvol=__active/__"

## additional arguments are given to cryptsetup
## --allow-discards options is desired in case swap is on SSD partition
cryptsetup_options="--type luks"