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 08-28-2015, 01:56 AM   #1
dmcrtr
LQ Newbie
 
Registered: Aug 2015
Posts: 13

Rep: Reputation: Disabled
nonblocking pool message while unlocking luks on current.


Hello,

I recently did a full install of slackware-current64 and ran into something I'm confused by.

when my computer boots it displays the normal

Code:
Unlocking LUKS encrypted device '/dev/sda2' as luks mapped device 'sda2':
Enter passphrase for /dev/sda2: _
as soon as I type a few characters a message pops up where I'm entering my passphrase.

Code:
Unlocking LUKS encrypted device '/dev/sda2' as luks mapped device 'sda2':
Enter passphrase for /dev/sda2: [  98.541672] random: nonblocking pool is initialized
The device unlocks normal everything seems to work fine, but the message is a bit annoying. I also want to make sure it isn't caused by something more severe.

I tried the default cryptsetup options ( cryptsetup luksFormat /dev/sda2 ) and had the same problem. I didn't have this issue with my time on 14.1.

One thing that may be worth mentioning is after I rebooted my computer after making the initrd using mkinitrd_command_generator.sh my usb keyboard didn't work. I was able to get it working again by adding ohci-pci leaving me wondering if I'm missing any other modules.

I think that http://www.linuxquestions.org/questi...rd-4175539983/ may be a similar problem but no solution was given.

I spend a couple nights trying to figure this out and would appreciate any ideas!

Thanks
 
Old 08-28-2015, 12:36 PM   #2
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
Hmm, it might work if you feed /dev/random before the cryptsetup work in /etc/rc.d/rc.S. Or you could disable kernel-messages appearing in the console, e.g. "dmesg --console-off" before cryptsetup stuff and "dmesg --console-on" to reenable afterwards, or set the console-level to something except "notice".
 
Old 08-28-2015, 02:58 PM   #3
dmcrtr
LQ Newbie
 
Registered: Aug 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
I installed Current on a virtual machine using another computer and had the normal luks prompt with out the message.

Looking at /etc/rc.d/rc.S on the virtual machine. I didn't see any references to /dev/random are you talking about /dev/random-seed?

Is this something that affect my disk encryption or something that can be safely ignored?

Last edited by dmcrtr; 08-28-2015 at 04:04 PM.
 
Old 08-31-2015, 01:27 PM   #4
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
I assume that the message comes from the kernel's random generator telling you that it's initialized and that happens when it is used for the first time, and this would be with the use of cryptsetup (or maybe a keystroke for collecting entropy). My proposal was now to give the random-generator some food (some data into /dev/urandom or /dev/random) like at the end of the rc.S, to trigger that message earlier.
I don't know if that works however. Anyways, that message is just a notice, in no way harmful and nothing to worry about. You are either safe to ignore it or change the console-logging level. There are several ways to do so:
Quote:
/proc/sys/kernel/printk
sysctl kernel.printk
or
Quote:
dmesg --console-off SOMELEVEL
Maybe even some kernel-parameter.
I guess a simple
Quote:
sysctl -w kernel.printk=4
before, and
Quote:
sysctl -w kernel.printk=3
after the cryptsetup-stuff in rc.S should be sufficient if you are really bothered by the notice, to disable kernel-notices from appearing on the console.
 
Old 08-31-2015, 08:43 PM   #5
dmcrtr
LQ Newbie
 
Registered: Aug 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks you for the reply!

I'm not really familiar with how this all works. How would you recommend feeding random?

I looked over rc.S in current an 14.1 there didn't seems to be any relevant differences between them. I'm really curious about what changed and why I'm only getting this behavior on current. I tried some other ciphers and hashes as well with the same result. If anyone has any ideas. I'd love to hear them.
 
Old 09-03-2015, 07:03 AM   #6
eldercitizen
Member
 
Registered: Apr 2015
Distribution: Slackware64-current
Posts: 38

Rep: Reputation: 31
Quote:
Originally Posted by dmcrtr
I'm not really familiar with how this all works. How would you recommend feeding random?
Like at the end of rc.S, basically writing data to /dev/urandom. You might move the "cat /etc/random-seed > /dev/urandom" part before any cryptsetup-stuff.
Quote:
Originally Posted by dmcrtr
I looked over rc.S in current an 14.1 there didn't seems to be any relevant differences between them. I'm really curious about what changed and why I'm only getting this behavior on current. I tried some other ciphers and hashes as well with the same result. If anyone has any ideas. I'd love to hear them.
If you were using the stock kernel from 14.1 (3.10.17), there simply was no such message in the kernel yet.
 
  


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
Unlocking LUKS with keyfile on USB slaka Linux - Software 1 05-16-2014 03:04 PM
[SOLVED] Initrd for kernel 3.8.11 and encrypted luks root partition in current Phorize Slackware 8 06-15-2013 09:04 AM
usb stick unlocking scheme for root encrypted partition in current escaflown Slackware 6 05-09-2010 04:16 PM
[SOLVED] Fresh Slackware64-current RAID-1 + LVM + LUKS: pvcreate not working gargamel Slackware 6 03-23-2010 02:24 PM
Slackware64-current: Creation of LUKS encrypted partition segfaults titopoquito Slackware 16 08-16-2009 04:02 AM

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

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