[pkg-cryptsetup-devel] Bug#737686: cryptsetup: Patch for #659688

Jens Reinsberger jennes at gmx.de
Tue Feb 4 23:23:37 UTC 2014


Package: cryptsetup
Version: 2:1.6.1-1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Maintainer,

I found a solutions for #659688 which bit me, too.

The problem is that only one of the LVM dependencies gets the "lvm="
option which is needed for the local-top/cryptroot script in order to work.

Patch:

- --- /usr/share/initramfs-tools/hooks/cryptroot	2013-06-28 12:14:24.000000000 +0200
+++ /usr/share/initramfs-tools/hooks/cryptroot.new	2014-02-04 23:23:27.480776508 +0100
@@ -378,7 +378,11 @@
 		fi
 
 		# It is a lvm device!
- -		lastopts="lvm=$nodes"
+                if [ -z "$opts" ]; then
+                    opts="lvm=$nodes"
+                else
+                    opts="$opts,lvm=$nodes"
+                fi
 		nodes="$lvmnodes"
 	fi
 

- ---------------------------------------------

Regards,
Jens

- -- Package-specific info:
- -- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.12-1-amd64 root=/dev/mapper/cosanostra-root ro single

- -- /etc/crypttab
sda6_crypt UUID=0af6847f-SHORTENED none luks
sda2_crypt UUID=17bd6bb2-SHORTENED /etc/luks.key luks

- -- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/cosanostra-root /               ext3    noatime,user_xattr,errors=remount-ro 0       1
# /boot was on /dev/sda5 during installation
UUID=c5ca6389-SHORTENED /boot           ext3    defaults        0       2
/dev/mapper/cosanostra-home /home           ext4    noatime,nodev,nosuid,user_xattr 0       2
/dev/mapper/cosanostra-usr /usr            ext4    noatime         0       2

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

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

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:1.6.1-1
ii  debconf [debconf-2.0]  1.5.52
ii  dmsetup                2:1.02.83-1
ii  libc6                  2.17-97
ii  sysv-rc                2.88dsf-45

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.21.0-1
ii  console-setup                           1.102
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
ii  liblocale-gettext-perl  1.05-7+b2

- -- debconf information:
  cryptsetup/prerm_active_mappings: true

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS8XZjAAoJEBWYeJ7GElY2vZEP/Rb8ZkaVSVuHnOzAaGq+71IE
z9kq32eQwMUd/WvKd+r1SKPk6GdEGm+7p1BSK4ZMnzvh0aOVy6EP8jgqw1uv+bhU
RPCzHLKYQQ9XXu0HOENyowjsLtxVNTwnS0aptOEDYfYqzCSv6DtiLQ4xa5JIYvEO
1JALSZIa6sSwo+6glLsxPhudgdlYOXf8MlItiX4+YQF+QVK1dHV6j7jicxbFfKbp
ycU3XoBz5ONe2KDxAkt8W/pLCUQc+phYp6svpPV3vGYMjWw2DTEOk9WBRHAh2xxX
+vozaMaEbP0KWSwF3I849EVBQhE4781vXc/6z5chw4GMowutyKPF0sOuVKaZzpI7
8fKf5IT7G5SDChzcdsVBHuh3UJFDqPGU1CBDz4Q4OAwnompGxyDSRvL6bs6FZ9gC
6/o5iJorg6336zvGvQsZ7xY4xHVfYvegCGN1ojdhhzMbgjQcGbULe6RDDh4lUueq
yt9ORlTvs70p/AluGHxK/EhqOahE6r1QQwCE666BMJFvkY9Ds9LdwrXkWgpxJM05
THutqhGvxbBHasLIN7ZJiss2fFoeXpfksq8eSpYY9nIhAgwf28+0gzTQm6QB6Zw7
OlwWUiRJHjjYdlpP4wu98zgoKGcnHq0fuoqdPZ0M+fJ+RhkDlDnmNkjXE18W3nDx
6HNiImdN9FBUve2G1ihb
=ua/m
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_659688.txt
Type: text/x-diff
Size: 444 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20140205/c4dc803e/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_659688.txt
Type: text/x-diff
Size: 444 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20140205/c4dc803e/attachment-0001.diff>


More information about the pkg-cryptsetup-devel mailing list