You are not logged in.

#1 2013-01-14 09:55:06

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

[SOLVED] Remote cryptsetup / dropbear problem

Hello,

I have just updated my system (which runs in a virtual machine). When booting, after remotely unlocking the root partition via dropbear, I get the following:

Enter passphrase for /dev/vda2:
[97] Jan 14 09:30:47 Child connection from xxx.xxx.xxx.xxx:xxxx
[97] Jan 14 09:30:48 Pubkey auth succeeded for 'root' with key md5 ... from xxx.xxx.xxx.xxx:xxxx
Terminated
[97] Jan 14 09:31:17 syslogin_perform_logout: logout(pts/0) returned an error: No such file or directory
[84] Jan 14 09:31:17 Premature exit: Terminated by signal
[84] Jan 14 09:31:17 Exit (root): Terminated by signal
ERROR: Unable to find root device '/dev/mapper/envda2'

The line
syslogin_perform_logout: logout(pts/0) returned an error: No such file or directory
appears every time that an ssh client disconnects.

Where do I even start troubleshooting? Is this a dropbear problem? Any help/comments/input appreciated!

Last edited by ffcitatos (2013-01-15 21:59:57)

Offline

#2 2013-01-14 11:01:54

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Remote cryptsetup / dropbear problem

I would be more concerned with the missing device rather than the seemingly harmless error on logout.

Offline

#3 2013-01-14 11:23:46

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

Re: [SOLVED] Remote cryptsetup / dropbear problem

Well, but that's the whole point!

The missing device /dev/mapper/envda2 is the device which is created by
cryptsetup luksOpen /dev/vda2 envda2 (or some equivalent inside dropbear). I am sure that /dev/vda2 exists, as dropbear can tell the correct key from a wrong one.

Offline

#4 2013-01-14 13:33:27

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Remote cryptsetup / dropbear problem

There's not nearly enough information here to provide anything resembling a useful response. Dropbear is an SSH daemon and has no involvement with running cryptsetup.

Offline

#5 2013-01-14 17:39:28

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

Re: [SOLVED] Remote cryptsetup / dropbear problem

falconindy, thanks for the patience. Indeed, I should have written that I am using dropbear_initrd_encrypt ( https://aur.archlinux.org/packages/drop … d_encrypt/ ), the latest
version from AUR. I still do not know, what error files to look at.

Offline

#6 2013-01-14 20:05:47

not_sure
Member
Registered: 2012-12-01
Posts: 27

Re: [SOLVED] Remote cryptsetup / dropbear problem

So what excactly did you update prior to rebooting?  Did you run mkinitcpio?  Without errors?

Offline

#7 2013-01-14 21:04:57

ffcitatos
Member
Registered: 2012-10-28
Posts: 16

Re: [SOLVED] Remote cryptsetup / dropbear problem

I am very sorry for the hassle, everything works now.

The problem was a wrong name of the encrypted partition in grub's config. I am not sure why it changed in the first place (part of the upgrade procedure by pacman?), but the only actions I performed were:
1) changed it in /etc/default/grub ;
2) ran grub config ( grub-mkconfig -o /boot/grub/grub.cfg ) ;
3) reran mkinitcpio -p linux .

falconindy and not_sure -- thanks!

Offline

#8 2013-01-15 00:15:57

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] Remote cryptsetup / dropbear problem

I believe this also applies to virtio block devices: https://wiki.archlinux.org/index.php/Pe … ice_naming
If this is solved, please mark it as such by editing the first post and prepending "[SOLVED]" to the title.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

Board footer

Powered by FluxBB