[pkg-cryptsetup-devel] Bug#524173: cryptsetup: cryptdisk_start target doesn't return a sensible exit code on failure.

Tim Small tim at buttersideup.com
Wed Apr 15 09:26:22 UTC 2009

Package: cryptsetup
Version: 2:1.0.6-7
Severity: normal

Running "cryptdisks_start target" doesn't return a sensible exit code
(always returns zero), if the operation fails:

ermintrude:~# cryptdisks_start cryptvz1 && echo 'exit code says OK!'
Starting crypto disk...mount: special device /dev/disk/by-uuid/484E-9B0A
does not exist
cryptvz1: keyfile not found (warning).
cryptvz1 (invalid key)...done.
exit code says OK!

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

More information about the pkg-cryptsetup-devel mailing list