Hi
With the latest cryptsetup update, the command
Code:
cryptsetup status foo
always gives result 0, no matter foo is exists or not. In slackware-13.1
it gives 0 for opened and 1 for not opened volumes.
I don't know exactly if this is good or bad, but in /etc/rc.d/rc.S when
etc/crypttab is processed this return value is used in line 80, to check
whether the volume is opened or not.
Code:
79: # Skip LUKS volumes that were already unlocked (in the initrd):
80: /sbin/cryptsetup status $LUKS 1>/dev/null 2>/dev/null && continue
And therefore no volume will be opened from /etc/crypttab, because the
status will always be true, and the volume will be skipped.
(my quick solution is to grep the output of the cryptsetup status
instead of using the return value)
Ferenc Deak