Package: cryptsetup
Version: 2:1.4.3-4
Severity: wishlist
Tags: patch

Patch attached. I know this is incomplete and would at least warrant some
documentation, but I am happy to do this myself if you feel this feature is a
good idea. In the meantime, users who need this functionality *right now* can
use my patch. :)


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.4.3-4
ii  debconf [debconf-2.0]  1.5.50
ii  dmsetup                2:1.02.74-7
ii  libc6                  2.17-3

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.20.0-8
ii  console-setup                           1.93
ii  initramfs-tools [linux-initramfs-tool]  0.112
ii  kbd                                     1.15.5-1

Versions of packages cryptsetup suggests:
ii  dosfstools              3.0.16-2
ii  liblocale-gettext-perl  1.05-7+b1

-- debconf information:
  cryptsetup/prerm_active_mappings: true

-- debsums errors found:
debsums: changed file /lib/cryptsetup/cryptdisks.functions (from cryptsetup 
package)
--- /lib/cryptsetup/cryptdisks.functions	2012-11-07 15:28:47.000000000 +0000
+++ /lib/cryptsetup/cryptdisks.functions	2013-07-11 00:31:04.766286868 +0100
@@ -38,6 +38,7 @@
 	TMPFS=""
 	MAKESWAP=""
 	USELUKS=""
+	LUKSHEADER=""
 	KEYSCRIPT=""
 	IGNORE=""
 	CRYPTTAB_OPTIONS=""
@@ -147,6 +148,10 @@
 		luks)
 			USELUKS="yes"
 			;;
+		header)
+			PARAMS="$PARAMS --header=$VALUE"
+			LUKSHEADER="$VALUE"
+			;;
 		noearly)
 			if [ "$INITSTATE" = "early" ]; then
 				IGNORE="yes"
@@ -251,7 +256,7 @@
 	tried=0
 	keyscriptarg=""
 
-	if ! cryptsetup isLuks "$src" >/dev/null 2>&1; then
+	if ! cryptsetup isLuks "${LUKSHEADER:-$src}" >/dev/null 2>&1; then
 		log_warning_msg "$dst: device '$src' is not a LUKS partition, skipping"
 		return 1
 	fi

Reply via email to