LinuxQuestions.org
Help answer threads with 0 replies.
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 05-09-2019, 03:42 PM   #1
The_Dark_Passenger
Member
 
Registered: Apr 2018
Distribution: Slackware64 14.2 & -Current
Posts: 93

Rep: Reputation: Disabled
Console output pause for LUKS password?


Hi,

I was wondering if it is possible for the console output to pause at boot when it asks for the LUKS password instead of continuing to output information? You can see here where it asks for the password, but kernel messages continue outputting, https://i.imgur.com/2W5C4pM.jpg. I would like it to pause when asking for the password, and not have further messages output until I unlock the partition.

My system is running Slackware64-current.

Any help would be appreciated. Thanks!

Last edited by The_Dark_Passenger; 05-09-2019 at 11:42 PM.
 
Old 05-09-2019, 04:16 PM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Couple of options.
1) Add 'quiet' on to your kernel parameters.
2) Put a 'sleep' in your init-script just before the cryptsetup luksOpen to allow the kernel and any background processes to finish flushing all their messages to the console.
 
Old 05-09-2019, 05:26 PM   #3
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Debian
Posts: 355

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by The_Dark_Passenger View Post
Hi,

I was wondering if it is possible for the console output to pause at boot when it asks for the LUKS password instead of continuing to output information?
This document covers using a USB "authorization" by storing the keys on a USB stick and checking them during boot:

http://ftp.slackware.com/pub/slackwa...ADME_CRYPT.TXT

Interestingly, I've found adding that
Code:
-K LABEL=TRAVELSTICK:/keys/alien.luks
does what you want, even without using the USB stick. So basically during boot, the system will stop on the luks prompt and not continue printing information to the screen until you enter your password, then proceed as normal. It looks very clean.

Note that's a capital -K.

Test it if you like. In my case I use
Code:
 -K UUID=1234-5678:/path/to/key.luks
where UUID is for the USB stick and the path is simply the folder on the stick containing the key. But generally I don't bother with the stick. I just like that the luks prompt is not cluttered by console messages.
 
Old 05-09-2019, 11:41 PM   #4
The_Dark_Passenger
Member
 
Registered: Apr 2018
Distribution: Slackware64 14.2 & -Current
Posts: 93

Original Poster
Rep: Reputation: Disabled
Thank you both for your replies. By setting the boot parameters to quiet, and a less verbose loglevel, the boot is much cleaner, and it does pause at asking for the password now. Thanks again!
 
  


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
Separate output to serial console and screen console systemlordanubis Linux - Server 1 11-21-2014 03:27 AM
Try to disable console output, console=null doesn't work embLinux Linux - Kernel 5 03-04-2014 03:21 AM
LUKS on RAID or RAID on LUKS? retch Linux - Server 3 05-05-2010 01:57 PM
Pause shell output huwnet Linux - General 3 04-01-2006 09:18 AM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM

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

All times are GMT -5. The time now is 11:00 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