LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-02-2013, 03:24 PM   #1
thegoofeedude
Member
 
Registered: Aug 2004
Distribution: Slackware 13.37, 14.1
Posts: 75

Rep: Reputation: 17
crypttab: opening luks volumes with TRIM on SSDs during boot


Hey guys,

I've created this patch which addresses some issues I had when trying to get my encrypted volumes to be opened with the --allow-discards option on boot.

My root partition is unencrypted, so I didn't need to do anything with an initrd; this patch works for volumes that are opened later in system startup.

The key insight I gained is that /etc/crypttab is read by /etc/rc.d/rc.S during boot, and so the file format is really just dependent on whatever that script is doing with it.

I'm just posting here in case my experience may be helpful to others!

https://gist.github.com/nathanbw/7279227
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] crypttab not working tripialos Linux - Newbie 2 08-11-2013 03:44 AM
How can I use trim with luks+lvm on ssd? pengStudent Slackware 5 05-16-2013 11:15 AM
root partition spanning multiple LUKS volumes Z038 Slackware 10 05-07-2013 04:10 PM
[SOLVED] Decrypting Multiple LUKS Volumes During Boot flokofcgulls Slackware 11 04-20-2013 11:53 PM
luks and logical volumes manyrootsofallevil Linux - Software 2 02-21-2011 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration