Package: cryptsetup
Version: 2:1.6.4-2
Severity: important
Tags: patch
Hello,
cryptdisks.functions now uses open --type plain instead of create but
the argument order has to be adjusted for <name> and <device> or one
gets error messages like:
,----
| device-mapper: ioctl: Unable to rename non-existent device, swap_unformatted
to swap
`----
The attached patch reverses the argument order for open --type plain.
Regards,
Dirk
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.13-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cryptsetup depends on:
ii cryptsetup-bin 2:1.6.4-2
ii debconf [debconf-2.0] 1.5.52
ii dmsetup 2:1.02.83-2
ii libc6 2.18-4
Versions of packages cryptsetup recommends:
ii busybox 1:1.22.0-4
ii console-setup 1.104
ii initramfs-tools [linux-initramfs-tool] 0.115
ii kbd 1.15.5-1
Versions of packages cryptsetup suggests:
ii dosfstools 3.0.16-2
pn keyutils <none>
ii liblocale-gettext-perl 1.05-7+b2
-- debconf information:
cryptsetup/prerm_active_mappings: true
--- /dev/shm/cryptdisks.functions 2014-03-02 14:10:00.000000000 +0100
+++ /lib/cryptsetup/cryptdisks.functions 2014-03-03 10:05:12.000000000 +0100
@@ -451,9 +451,9 @@
while [ "$tried" -lt "$TRIES" ]; do
export CRYPTTAB_TRIED="$tried"
if [ -n "$KEYSCRIPT" ]; then
- $KEYSCRIPT "$keyscriptarg" | cryptsetup $PLAINPARAMS $PARAMS open --type plain "${dst}_unformatted" "$src"
+ $KEYSCRIPT "$keyscriptarg" | cryptsetup $PLAINPARAMS $PARAMS open --type plain "$src" "${dst}_unformatted"
else
- cryptsetup $PLAINPARAMS $PARAMS open --type plain "${dst}_unformatted" "$src"
+ cryptsetup $PLAINPARAMS $PARAMS open --type plain "$src" "${dst}_unformatted"
fi
if [ -z "$CHECK" ] || "$CHECK" "/dev/mapper/${dst}_unformatted" $CHECKARGS; then