[pkg-cryptsetup-devel] Bug#513149: Bug#513149: ryptdisks_start with explicit volume does not give proper errors

Joachim Breitner nomeata at debian.org
Tue Jan 27 09:20:30 UTC 2009


Hi,

Am Dienstag, den 27.01.2009, 01:10 +0100 schrieb Jonas Meurer:
> Hello,
> 
> On 26/01/2009 Joachim Breitner wrote:
> > when trying to start a device with a crypttab entry using
> > cryptdisks_start directly, as in
> > 
> > $ cryptdisks_start media500
> > Starting crypto disk...done.
> > 
> > does not give an error message when the device is not present (in my
> > case, because I did not run vgchange -a y vg-500 yet).
> > 
> > While it is ok to ignore the entry during boot (it has the noauto flag),
> > it really should tell me about problems when I specifiy it explicitly.
> 
> you're right, that should be fixed.
> 
> could you try to set LOUD="yes" at the beginning of
> /usr/sbin/cryptdisks_start and see whether that fixes your problem?

no, unfortunately not:

$ head -n 20 /usr/sbin/cryptdisks_start 
#!/bin/sh

# cryptdisks_start - wrapper around cryptsetup which parses
# /etc/crypttab, just like mount parses /etc/fstab.

# Initial code and (c) 2007 Jon Dowland <jon at alcopop.org>
# License: GNU General Public License, v2 or any later
# (http://www.gnu.org/copyleft/gpl.html)

set -e

export LOUD=yes

if [ $# -lt 1 ]; then
	echo "usage: $0 <name>" >&2
	echo >&2
	echo "reads /etc/crypttab and starts the mapping corresponding to
<name>" >&2
	exit 1
fi

~ $ cryptdisks_start media500
Starting crypto disk...done.

Greetings,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20090127/5bb727c3/attachment.pgp 


More information about the pkg-cryptsetup-devel mailing list