LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-18-2021, 09:00 AM   #1
nebulein
LQ Newbie
 
Registered: Nov 2009
Location: Germany
Distribution: Slackware
Posts: 21

Rep: Reputation: 0
LUKS partition not decrypted during boot


Hi,

I am having a rather strange problem.

I just setup a laptop with slackware-current and wanted tu use an encrypted /home partition using LUKS/crypttab. I followed the instuctions in README_CRYPT.TXT. I have done this setup on multiple machines so far without any problems and it works.

The partition works, is properly decrypted and I can mount and use it normally. But Slackware does not prompt me for the password during boot.

rc.S is definitely invoked during boot, but it seems to ignore /etc/crypttab.

If I run rc.S after boot, it prompts me for the password. So rc.S is not broken.

Any ideas? Running Slackware-current from Feb 16 using the generic kernel 5.10.16. UEFI-Boot with elilo.


Thank you for your help!

Ben
 
Old 02-18-2021, 09:33 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Are you certain it's not asking you? Sometimes the prompt can be lost in amongst all the other boottime messages. I like to add 'quiet' to my kernel parameters because of this issue.
 
Old 02-18-2021, 10:45 AM   #3
nebulein
LQ Newbie
 
Registered: Nov 2009
Location: Germany
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 0
Yes, I am certain. I have set a timeout of three minutes for the prompt. Booting takes like 15 seconds.

Additionally I echo some marker right before and after the crypttab section of rc.S to prevent me from missing anything. And there is just nothing in between the marker.

What strikes me is, that when invoked manually after boot, rc.S prompts me. Maybe some permission issue?
 
Old 02-18-2021, 11:55 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Fair enough, just wanted to rule out the basics.

If it's working when you run it manually, then the only thing I can think of would be some sort of timing issue, and that perhaps the device isn't ready by the time crypttab is being processed.

What sort of device is the luks container for /home stored on?

If you stick a 30 second sleep into rc.S just before crypttab does that help?

Last edited by GazL; 02-18-2021 at 11:57 AM.
 
Old 02-19-2021, 03:44 AM   #5
nebulein
LQ Newbie
 
Registered: Nov 2009
Location: Germany
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 0
Sleep doesn't help.

For now I put a little script that checks if /home is mounted into rc.local. If not it opens the decrypt dialogue and mounts it. Not nice, but functional.

Thank you for your help!
 
  


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
How to keep LUKS partition decrypted without USB thumb drive with keyfile present? SirSkorpan Linux - Security 2 11-29-2018 02:31 PM
can a password be decrypted usmansamad Linux - Newbie 16 08-17-2009 10:39 PM
Help requried to write the decrypted ipsec packets to the local disk. ahm_irf Linux - Security 3 02-22-2007 06:07 PM
encrypted files, decrypted fictive drives diano Linux - Security 2 12-18-2006 02:06 PM
GnuPG - best permissions & security of decrypted file - help please emuub Linux - Security 1 10-14-2005 05:28 PM

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

All times are GMT -5. The time now is 12:55 PM.

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