LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nov.16 -current update broke cryptsetup (https://www.linuxquestions.org/questions/slackware-14/nov-16-current-update-broke-cryptsetup-844876/)

danielldaniell 11-17-2010 11:53 AM

nov.16 -current update broke cryptsetup
 
Hi!

After the recent -current upgrades, cryptsetup won't open a luks partition. It just hangs:
/sbin/cryptsetup luksOpen /dev/sda11 danielldocuments
Enter passphrase for /dev/sda11: blah
<hangs>



# strace -p 7363
Process 7363 attached - interrupt to quit
read(4, "asd\n", 512) = 4
ioctl(4, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo ...}) = 0
write(4, "\n", 1) = 1
close(4) = 0
brk(0x809a000) = 0x809a000
getpid() = 7363
rt_sigaction(SIGINT, {0xb77f6fa0, [INT], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
open("/dev/sda11", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, BLKSSZGET, 0xbf87e4cc) = 0
close(4) = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 4
read(4, "@\333", 2) = 2
semget(0xd4ddb40, 1, IPC_CREAT|IPC_EXCL|0600) = 65538
semctl(65538, 0, IPC_64|SETVAL, 0xbf87e298) = 0
close(4) = 0
semop(65538, {{0, 1, 0}}, 1) = 0
open("/dev/sda11", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, BLKRAGET, 0xbf87e4e8) = 0
close(4) = 0
ioctl(3, DM_DEV_CREATE, 0x807a060) = 0
ioctl(3, DM_TABLE_LOAD, 0x807a060) = 0
ioctl(3, DM_DEV_SUSPEND, 0x8079fe0) = 0
semget(0xd4ddb40, 1, 0) = 65538
semop(65538, {{0, -1, IPC_NOWAIT}}, 1) = 0
semop(65538, {{0, 0, 0}}, 1


What gives?

# uname -rv
2.6.35.7-smp #2 SMP Mon Oct 11 14:52:09 CDT 2010

cryptsetup-1.1.3-i486-1

volkerdi 11-17-2010 12:03 PM

It works here on x86_64. Maybe sure that you have the latest batch of updates, because otherwise the previous aaa_elflibs (if installed out of order) was causing problems for LVM. I wouldn't be surprised if that's also your issue with cryptsetup.

danielldaniell 11-17-2010 12:23 PM

I've got the latest aaa_* packages; ran ldconfig, rebooted, waited, showered... Still no luck.

# ls -l /var/log/packages/aaa_*
-rw-r--r-- 1 root root 2161 2010-11-17 19.20.44 /var/log/packages/aaa_base-13.1-i486-2
-rw-r--r-- 1 root root 2644 2010-11-17 19.20.49 /var/log/packages/aaa_elflibs-13.2-i486-3
-rw-r--r-- 1 root root 11893 2010-11-17 19.20.54 /var/log/packages/aaa_terminfo-5.7-i486-2

danielldaniell 11-17-2010 01:03 PM

While I tried to compile the cryptsetup-1.1.3 source, it complained about a missing libdevmapper.h file. Noticed that it really wasn't not preset on my system, and that the Slackware package (lvm2) which provides this, is indeed not installed.
After installpkg lvm2, cryptsetup works. Don't know why it wouldn't complain about anything but just hang forever.

Yet another time when I got reminded that one should install every package in a Slackware distribution.


All times are GMT -5. The time now is 10:24 PM.