Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Encrypted swaps stopped working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Mon Jan 10, 2011 5:22 pm    Post subject: [SOLVED] Encrypted swaps stopped working Reply with quote

Hi.

The cryptsetup statement stopped being issued during the boot process. This causes swapon -a to fail because /dev/mapper/... swaps didn't get created.
It used to work. I suppose the problem began to occur after a recent upgrade because this happens on both my two gentoo systems.
Issuing the cryptsetup manually works and then also does swapon -a.

What issues the cryptsetup during boot?
Where to look up?

Here is some pertinent info ...
I am using baselayout 1.12.14-r1.

Code:

/etc/conf.d/dmcrypt
...
swap=CA-swp
source='/dev/sda5'

swap=CB-swp
source='/dev/sdb5'

/etc/fstab
...
/dev/mapper/CA-swp      none            swap            sw,pri=2                       0 0
/dev/mapper/CB-swp      none            swap            sw,pri=1                       0 0



Last edited by psdasilva on Tue Jan 11, 2011 2:48 am; edited 1 time in total
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 515
Location: San Diego, California USA

PostPosted: Mon Jan 10, 2011 7:09 pm    Post subject: Reply with quote

The startup script got messed up in cryptsetup 1.1.3-r1. Upgrade to 1.1.3-r2.
Back to top
View user's profile Send private message
elko
n00b
n00b


Joined: 02 Feb 2010
Posts: 55

PostPosted: Mon Jan 10, 2011 7:09 pm    Post subject: Reply with quote

What version of sys-fs/cryptsetup do you use? If you use 1.1.3-r1 see https://bugs.gentoo.org/show_bug.cgi?id=350399. 1.1.3-r2 version seems ok.
Back to top
View user's profile Send private message
psdasilva
Apprentice
Apprentice


Joined: 03 Sep 2005
Posts: 239

PostPosted: Tue Jan 11, 2011 2:47 am    Post subject: Reply with quote

gentoo_ram wrote:
The startup script got messed up in cryptsetup 1.1.3-r1. Upgrade to 1.1.3-r2.


That's it! It works now.

I never thought of being cryptsetup because it worked when issued manually.

Thanks all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum