Fixed TRIM option handling in /etc/crypttab

'discard' ('allow-discards' being the switch name to use in cryptsetup)

v0.4-1
This commit is contained in:
Julien Coloos
2017-06-25 18:22:53 +02:00
parent cf6ccb2d23
commit e5ee05f382
4 changed files with 42 additions and 26 deletions

View File

@@ -179,7 +179,7 @@ sshcs_cryptpart_process() {
cryptargs=
for cryptopt in ${cryptoptions//,/ }; do
case ${cryptopt} in
allow-discards)
discard)
cryptargs="${cryptargs} --allow-discards"
;;