# but, if you are using your own fstab, it seems you just give it a name,
# which will be the crypt device name under /dev/mapper/
# https://wiki.archlinux.org/index.php/GRUB#Additional_arguments
- crypt_dev=(/dev/?da3)
+ crypt_dev=(/dev/?da$rootn)
crypt_name=crypt_dev_${crypt_dev##/dev/}
k_args=(
cryptdevice=$crypt_dev:$crypt_name:allow-discards
root=/dev/mapper/$crypt_name
- resume=${crypt_dev%3}2
+ resume=${crypt_dev%[0-9]}$swapn
)
- crypt_mapper_devs=(/dev/mapper/crypt_dev_?d[a-z]3)
+ crypt_mapper_devs=(/dev/mapper/crypt_dev_?d[a-z]$rootn)
keyfile_vars=()
for ((i=1; i < ${#crypt_mapper_devs[@]}; i++)); do
((i!=1)) || dup_keys=(" ")