You are not logged in.

#1 2008-02-10 20:21:11

sveinemann
Member
Registered: 2007-09-30
Posts: 108

padlock-sha? Why error on boot?

Hi
Im using luks encrypted root and storage, so right after booting (pressing in my password) it says something about not finding the module padlock-sha? Why? I mean, since it boots fine and unlocks the volumes.

Offline

#2 2008-02-12 04:57:27

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: padlock-sha? Why error on boot?

Same here, with encrypted swap only.


1000

Offline

#3 2008-02-12 11:57:38

YscO
Member
From: Netherlands
Registered: 2006-06-25
Posts: 52

Re: padlock-sha? Why error on boot?

Same here, seems to be something with the new kernel wink

http://groups.google.com/group/linux.de … 0?lnk=raot

Offline

#4 2008-02-12 13:12:48

sveinemann
Member
Registered: 2007-09-30
Posts: 108

Re: padlock-sha? Why error on boot?

Thats wired, thanks for the link tough. But it doesnt solve the problem, this is my laptop i use @ work. I cant risk it dying. hmm Everything does work, for now, and thats the important part.

Offline

#5 2008-02-12 13:39:01

gothmog.todi
Member
From: Austria
Registered: 2007-07-18
Posts: 120

Re: padlock-sha? Why error on boot?

I get the same warning, with everything encrypted except boot. There don't seem to be any consequences though.

Offline

#6 2008-10-09 09:40:16

aneiser
Member
Registered: 2008-07-21
Posts: 59

Re: padlock-sha? Why error on boot?

If you're able to read & understand German, the solution is here: http://wiki.archlinux.de/?title=Festpla … lermeldung, but I give you a short summary (be REALLY careful and HAVE a FALLBACK image to boot):
First find out what modules your crypto system needs by comparing the output of

cd /lib/modules/$(uname -r)
source /lib/initcpio/functions 
m="$(all_modules "/crypto/") "
echo $m

and

lsmod

Then edit your /etc/mkinitcpio.conf (as root) and add a line containing all your needed modules, e.g. my line looks like

CRYPTO_MODULES="xts aes_i586 aes_generic"

This way you tell the hook "encrypt" not to load unneccessary modules, BUT if you forget one needed module, the unlocking of your crypted device won't work. So just imagine what happens if you can't unlock your crypted root on boot, then: Use your fallback image!
The last step is to update your image by issuing (as root)

mkinitcpio -g /boot/kernel26.img

Now it's possible that udev tries to load the padlock modules, so just blacklist them by creating a file (call it e.g. padlock) in the directory /etc/modprobe.d/ and add the following contents:

blacklist padlock-aes
blacklist padlock-sha

Hope this helps.

Offline

#7 2008-10-09 11:53:53

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: padlock-sha? Why error on boot?

An easier solution is to add this to your /etc/modprobe.conf

blacklist padlock_aes
blacklist padlock_sha

That's what I've done on my laptop after I migrated my /home partition to be encrypted this afternoon. All working OK smile

Offline

#8 2008-10-09 13:49:44

apaige
Member
Registered: 2008-06-15
Posts: 96

Re: padlock-sha? Why error on boot?

You do want the padlock modules if your laptop has a VIA CPU.

Offline

#9 2008-10-09 21:41:22

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: padlock-sha? Why error on boot?

apaige wrote:

You do want the padlock modules if your laptop has a VIA CPU.

In which case the errors shouldn't be appearing, no? smile

Offline

#10 2008-10-09 21:41:39

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: padlock-sha? Why error on boot?

apaige: Sure, but with a VIA cpu you also don't get those error messages as those modules will load just fine. ;-)


1000

Offline

#11 2008-10-10 13:05:02

aneiser
Member
Registered: 2008-07-21
Posts: 59

Re: padlock-sha? Why error on boot?

fukawi2 wrote:

An easier solution is to add this to your /etc/modprobe.conf

blacklist padlock_aes
blacklist padlock_sha

That's what I've done on my laptop after I migrated my /home partition to be encrypted this afternoon. All working OK smile

No, for me *only* blacklisting the modules did not help since the encrypt hook tries to load all modules with its own routine and blacklisting is not respected. So only the combination of blacklisting *and* telling the encrypt-hook what modules you need solved the problem for me.

Offline

#12 2010-10-07 22:26:01

rabinhood
Member
From: Katowice, Poland
Registered: 2010-09-03
Posts: 5

Re: padlock-sha? Why error on boot?

In my case the change of modules list in mkinitcpio.conf alone helped, with no change in modprobe.conf. And it's true that you have to be very careful and remember to add all the used modules in CRYPTO_MODULES line. I forgot to add one, and ended with maintance from USB drive.
Thanks!

Offline

#13 2010-10-07 23:13:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: padlock-sha? Why error on boot?

rabinhood: please don't necro-bump http://wiki.archlinux.org/index.php/For … Bumping.27

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB