[Pkg-cryptsetup-devel] Bug#446674: cryptsetup: Options "offset" and "skip" missing in /etc/crypttab
Marc-Jano Knopp
pub_br_debian.org at marc-jano.de
Sun Oct 14 19:19:37 UTC 2007
Package: cryptsetup
Version: 2:1.0.5-1
Severity: normal
Tags: patch
The options
--offset, -o
and
--skip, -b
are not supported in /etc/crypttab, which makes it impossible to automatically
decrypt an encrypted disk using either of these options.
The appended patch adds these options and at least works with the option
"offset" in /etc/crypttab. I haven't tested option "skip".
The two new options need to be mentioned in the manual page, of course.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages cryptsetup depends on:
ii dmsetup 2:1.02.20-2 The Linux Kernel Device Mapper use
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.20-2 The Linux Kernel Device Mapper use
ii libgcrypt11 1.2.4-2 LGPL Crypto library - runtime libr
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii libuuid1 1.40.2-1 universally unique id library
cryptsetup recommends no packages.
-- no debconf information
-------------- next part --------------
--- cryptdisks.functions.orig 2007-10-14 20:51:50.000000000 +0200
+++ cryptdisks.functions 2007-10-14 20:54:18.000000000 +0200
@@ -74,6 +74,20 @@
fi
PARAMS="$PARAMS -h $VALUE"
;;
+ offset)
+ if [ -z "$VALUE" ]; then
+ log_warning_msg "$dst: no value for offset option, skipping"
+ return 1
+ fi
+ PARAMS="$PARAMS -o $VALUE"
+ ;;
+ skip)
+ if [ -z "$VALUE" ]; then
+ log_warning_msg "$dst: no value for skip option, skipping"
+ return 1
+ fi
+ PARAMS="$PARAMS -p $VALUE"
+ ;;
verify)
PARAMS="$PARAMS -y"
;;
More information about the Pkg-cryptsetup-devel
mailing list