[pkg-cryptsetup-devel] Bug#648868: cryptsetup: Please add support for allow-discards option in crypttab

Peter Colberg peter at colberg.org
Sun Dec 18 23:55:09 UTC 2011


Dear Maintainer,

I extended the patch for TRIM support in crypttab to include the
cryptroot initramfs script. Further the option “allow-discards” is
renamed to “discard”, which avoids a hyphen in the parameter name:

PARAM=allow-discards
VALUE=yes
eval export CRYPTTAB_OPTION_$PARAM="\"$VALUE\""
/bin/dash: 1: export: CRYPTTAB_OPTION_allow-discards: bad variable name

Besides avoiding a hyphen, this follows the style of crypttab options,
e.g. --key-size → size. e2fsprogs names the option “discard” as well.

Regards,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crypttab_discard_option.patch
Type: text/x-diff
Size: 3095 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20111219/1d2a645c/attachment.patch>


More information about the pkg-cryptsetup-devel mailing list