Bug 826258

Summary: Dracut does not honor allow-discards in /etc/crypttab
Product: [Fedora] Fedora Reporter: Juan Orti <j.orti.alcaine>
Component: dracutAssignee: dracut-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dracut-maint, fedora, greno, jonathan, sven, ya.qmp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-03 11:52:35 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Juan Orti 2012-05-29 17:24:59 EDT
Recently has been added support for passing TRIM requests through Luks to the block device, but dracut does not honor this option in crypttab. The versions needed are: kernel >= 3.1, cryptsetup >= 1.4.0 and systemd >= 44-11

This is my crypttab:
luks-1234567890-3bbc-5444-b1c9-1234567890 UUID=1234567890-3bbc-5444-b1c9-1234567890 none allow-discards

I have found a quick and dirty solution in this post:
Comment 1 Fedora Update System 2012-06-18 13:48:59 EDT
dracut-018-65.git20120612.fc17 has been submitted as an update for Fedora 17.
Comment 2 Fedora Update System 2012-06-22 10:17:58 EDT
dracut-018-78.git20120622.fc17 has been submitted as an update for Fedora 17.
Comment 3 Fedora Update System 2012-06-25 20:34:04 EDT
Package dracut-018-78.git20120622.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-018-78.git20120622.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2012-07-03 11:52:35 EDT
dracut-018-78.git20120622.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.