[Pkg-cryptsetup-devel] Bug#377591: cryptsetup: cryptdisks restart uses do_start and do_stop in wrong order

Hans Peter Wiedau hpw at quelltext.com
Mon Jul 10 09:26:53 UTC 2006


Package: cryptsetup
Version: 2:1.0.3-2
Severity: normal
Tags: patch

/etc/init.d/cryptdisks uses 'do_start' and 'do_stop' in wrong order:

# /etc/init.d/cryptdisks restart
Starting remaining crypto disks... cswap(starting) done.
Stopping remaining crypto disks... cswap(stopping) done.
#

Of course the crypted device isn't available after restarting.

The following patch solves the problem:

----8<---- snip-snap ----8<----

*** cryptdisks  2006-06-06 00:26:25.000000000 +0200
--- cryptdisks.new      2006-07-10 10:47:34.000000000 +0200
***************
*** 35,40 ****
        ;;
    restart|reload|force-reload)
-       do_start
        do_stop
        ;;
    *)
--- 35,40 ----
        ;;
    restart|reload|force-reload)
        do_stop
+       do_start
        ;;
    *)

---->8---- snip-snap ---->8----

-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.07-1 The Linux Kernel Device Mapper use
ii  libc6                        2.3.6-15    GNU C Library: Shared libraries
ii  libdevmapper1.02             2:1.02.07-1 The Linux Kernel Device Mapper use
ii  libgcrypt11                  1.2.2-1     LGPL Crypto library - runtime libr
ii  libgpg-error0                1.2-1       library for common error values an
ii  libpopt0                     1.10-2      lib for parsing cmdline parameters
ii  libuuid1                     1.39-1      universally unique id library

cryptsetup recommends no packages.

-- no debconf information




More information about the Pkg-cryptsetup-devel mailing list