Your message dated Tue, 07 Feb 2012 21:32:18 +0000
with message-id <[email protected]>
and subject line Bug#634109: fixed in cryptsetup 2:1.4.1-1
has caused the Debian Bug report #634109,
regarding cryptsetup: initramfs hook: deps determined for lvm on dm-crypt are 
incomplete
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
634109: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634109
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cryptsetup
Version: 2:1.1.3-4squeeze2
Severity: normal
Tags: patch


Given a vg with multiple encrypted pvs, only one of which contains the
root lv, the initramfs-hook will only pull in the pv that actually
holds the root lv. Any other pvs in the same vg are not set up to be
decrypted at boot, so the vg remains incomplete and cannot start,
rendering the system unbootable in turn.

The dependencies of an lvm volume should probably not be determined
via dmsetup deps - maybe something along the lines of:


================ UNTESTED, USE AT YOU OWN RISK ================

--- cryptroot.stock     2011-07-17 01:10:26.000000000 +0200
+++ cryptroot   2011-07-17 02:01:32.000000000 +0200
@@ -141,16 +141,16 @@
                return 1
        fi

-       if ! deps=$(dmsetup deps "$node" 2> /dev/null | sed 's/[^:]*: *//;s/[ 
(]//g;s/)/ /g'); then
+       if ! deps=$(vgs --noheadings -o pv_name $(echo "$node" | cut -d '-' 
-f1)); then
                echo "cryptsetup: WARNING: failed to find deps for $node" >&2
                return 1
        fi

        # We should now have a list of major,minor pairs, e.g. "3,2 3,3"
        for dep in $deps; do
-               maj=$(echo ${dep%,*} | sed -e "s/^[ \t]*//g")
-               min=$(echo ${dep#*,} | sed -e "s/[ \t]*$//g")
-               depnode=$(dmsetup ls | sed -n "s/\\([^ ]*\\) *($maj, 
$min)/\\1/p" | sed -e "s/[ \t]*$//")
+#              maj=$(echo ${dep%,*} | sed -e "s/^[ \t]*//g")
+#              min=$(echo ${dep#*,} | sed -e "s/[ \t]*$//g")
+               depnode=$(dmsetup info -c --noheadings -o name "$dep")
                if [ -z "$depnode" ]; then
                        continue
                fi

================ CUT HERE ================


Cheers,

C.  


-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/mohammed-root ro acpi_enforce_resources=lax 

-- /etc/crypttab
# <target name> <source device>         <key file>      <options>
md1_crypt       /dev/md1                none            luks
md2_crypt       /dev/md2                none            luks

-- lsmod
Module                  Size  Used by
cn                      4563  1 
acpi_cpufreq            5571  1 
cpufreq_powersave        902  0 
cpufreq_stats           2659  0 
cpufreq_userspace       1992  0 
cpufreq_conservative     5162  0 
binfmt_misc             6431  1 
ext4                  288318  2 
jbd2                   67015  1 ext4
crc16                   1319  1 ext4
ext2                   52905  1 
k10temp                 2715  0 
lm85                   18993  0 
hwmon_vid               1828  1 lm85
coretemp                4325  0 
ipmi_msghandler        26634  0 
snd_pcm                60503  0 
snd_timer              15582  1 snd_pcm
snd                    46526  2 snd_pcm,snd_timer
soundcore               4598  1 snd
i2c_i801                7830  0 
snd_page_alloc          6249  1 snd_pcm
i2c_core               15819  2 lm85,i2c_i801
pcspkr                  1699  0 
psmouse                49937  0 
container               2389  0 
button                  4650  0 
serio_raw               3752  0 
evdev                   7352  3 
i3200_edac              2671  0 
edac_core              29261  2 i3200_edac
shpchp                 26264  0 
pci_hotplug            21203  1 shpchp
processor              29935  1 acpi_cpufreq
ext3                  106630  2 
jbd                    37085  1 ext3
mbcache                 5050  3 ext4,ext2,ext3
sha256_generic          8692  4 
aes_x86_64              7340  4 
aes_generic            25714  1 aes_x86_64
cbc                     2539  2 
dm_crypt               10664  2 
dm_mod                 53706  20 dm_crypt
raid456                44500  1 
async_raid6_recov       5170  1 raid456
async_pq                3479  2 raid456,async_raid6_recov
raid6_pq               77179  2 async_raid6_recov,async_pq
async_xor               2478  3 raid456,async_raid6_recov,async_pq
xor                     4380  1 async_xor
async_memcpy            1198  2 raid456,async_raid6_recov
async_tx                1734  5 
raid456,async_raid6_recov,async_pq,async_xor,async_memcpy
raid10                 17809  1 
raid1                  18431  1 
md_mod                 73872  6 raid456,raid10,raid1
sd_mod                 29921  20 
crc_t10dif              1276  1 sd_mod
uhci_hcd               18521  0 
sata_sil24             11185  8 
ahci                   32534  8 
ehci_hcd               32081  0 
libata                133760  2 sata_sil24,ahci
e1000e                110063  0 
scsi_mod              126517  2 sd_mod,libata
thermal                11674  0 
thermal_sys            11942  2 processor,thermal
usbcore               122498  3 uhci_hcd,ehci_hcd
nls_base                6377  1 usbcore


-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.48-5 The Linux Kernel Device Mapper use
ii  libc6                        2.11.2-10   Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.48-5 The Linux Kernel Device Mapper use
ii  libpopt0                     1.16-1      lib for parsing cmdline parameters
ii  libuuid1                     2.17.2-9    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  busybox                       1:1.17.1-8 Tiny utilities for small and embed
pn  dosfstools                    <none>     (no description available)
ii  initramfs-tools [linux-initra 0.98.8     tools for generating an initramfs
ii  udev                          164-3      /dev/ and hotplug management daemo

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: cryptsetup
Source-Version: 2:1.4.1-1

We believe that the bug you reported is fixed in the latest version of
cryptsetup, which is due to be installed in the Debian FTP archive:

cryptsetup-udeb_1.4.1-1_amd64.udeb
  to main/c/cryptsetup/cryptsetup-udeb_1.4.1-1_amd64.udeb
cryptsetup_1.4.1-1.debian.tar.gz
  to main/c/cryptsetup/cryptsetup_1.4.1-1.debian.tar.gz
cryptsetup_1.4.1-1.dsc
  to main/c/cryptsetup/cryptsetup_1.4.1-1.dsc
cryptsetup_1.4.1-1_amd64.deb
  to main/c/cryptsetup/cryptsetup_1.4.1-1_amd64.deb
cryptsetup_1.4.1.orig.tar.bz2
  to main/c/cryptsetup/cryptsetup_1.4.1.orig.tar.bz2
libcryptsetup-dev_1.4.1-1_amd64.deb
  to main/c/cryptsetup/libcryptsetup-dev_1.4.1-1_amd64.deb
libcryptsetup4-udeb_1.4.1-1_amd64.udeb
  to main/c/cryptsetup/libcryptsetup4-udeb_1.4.1-1_amd64.udeb
libcryptsetup4_1.4.1-1_amd64.deb
  to main/c/cryptsetup/libcryptsetup4_1.4.1-1_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Meurer <[email protected]> (supplier of updated cryptsetup package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


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

Format: 1.8
Date: Sun, 05 Feb 2012 03:17:59 +0100
Source: cryptsetup
Binary: cryptsetup libcryptsetup4 libcryptsetup-dev cryptsetup-udeb 
libcryptsetup4-udeb
Architecture: source amd64
Version: 2:1.4.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian Cryptsetup Team 
<[email protected]>
Changed-By: Jonas Meurer <[email protected]>
Description: 
 cryptsetup - disk encryption support - commandline tools
 cryptsetup-udeb - disk encryption support - commandline tools (udeb) (udeb)
 libcryptsetup-dev - disk encryption support - development files
 libcryptsetup4 - disk encryption support - shared library
 libcryptsetup4-udeb - disk encryption support - shared library (udeb) (udeb)
Closes: 591853 597583 633105 634017 634109 638257 638317 640056 641719 641839 
641947 642147 642470 642540 643633 643962 644853 645528 646083 647851 648192 
648868 654676 656933 658360
Changes: 
 cryptsetup (2:1.4.1-1) unstable; urgency=low
 .
   * new upstream release (1.4.0 + 1.4.1) (closes: #647851)
     - fixes typo in german translation. (closes: #645528)
     - remove patches, all incorporated upstream.
     - soname bump, rename library package to libcryptsetup4
   * check for busybox in initramfs cryptroot hook, and install the sed binary
     in case it's either not installed or not activated. (closes: #591853)
   * add checks for 'type $KEYSCRIPT' to initscripts cryptdisks.functions, and
     to cryptroot initramfs script/hook. this adds support for keyscripts inside
     $PATH. thanks to Ian Jackson for the suggestion. (closes: #597583)
   * use argument '--sysinit' for vgchange in cryptroot initramfs script. Thanks
     to Christoph Anton Mitterer for the suggestion.
   * add option for discard/trim features to crypttab and initramfs scripts.
     Thanks to intrigeri and Peter Colberg for patches. (closes: #648868)
   * print $target on error in initramfs hook. Thanks to Daniel Hahler for the
     bugreport. (closes: #648192)
   * add a warning about using decrypt_derived keyscript for devices with
     persistent data. Thanks to Arno Wagner for pointing this out.
   * remove quotes from resume device candidates at get_resume_devs() in
     initramfs hook script. Thanks to Johannes Rohr. (closes: #634017)
   * support custom $TABFILE, thanks to Douglas Huff. (closes: #638317)
   * fix get_lvm_deps() in initramfs cryptroot hook to add all physical volumes
     of lvm volume group that contains the rootfs logical volume, even if the
     rootfs is lv is not spread over all physical volumes. Thanks to Christian
     Pernegger for bugreport and patch. (closes: #634109)
   * debian/initramfs/cryptroot-script: Move check for maximum number of tries
     behind the while loop, to make the warning appear in case that maximum
     number of tries is reached. Thanks to Chistian Lamparter for bugreport and
     patch. (closes: #646083)
   * incorporate changes to package descriptions and debconf templates that
     suggested by debian-l10n-english people. Special thanks go to Justin B Rye.
   * acknowledge NMU, thanks a lot to Christian Perrier for his great work on
     the i18n front. (closes: #633105, #641719, #641839, #641947, #642470,
     #640056, #642540, #643633, #643962, #644853)
   * add and update debconf translations:
     - italian, thanks to Milo Casagrande, Francesca Ciceri. (closes: #656933)
     - german, thanks to Erik Pfannenstein. (closes: #642147)
     - spanish, thanks to Camaleón. (closes: #658360)
     - russian, thanks to Yuri Kuzlov (closes: #654676)
   * set architecture to linux-any, depends on linux kernel anyway. Thanks to
     Christoph Egger. (closes: #638257)
   * small updates to the copyright file.
   * add targets build-indep and build-arch to debian/rules, thanks to lintian.
Checksums-Sha1: 
 d8aa53c16c60d5f392232b12af16c20b736c92d1 2483 cryptsetup_1.4.1-1.dsc
 32608be5b146a7bd3999129b086bad8b66c085b9 772971 cryptsetup_1.4.1.orig.tar.bz2
 f29a9c8c45ee38fe7c498699a94d85e4c4126d27 89477 cryptsetup_1.4.1-1.debian.tar.gz
 ad540d0fb5a235e7135db19e1bf1a3a37beb6d40 210348 cryptsetup_1.4.1-1_amd64.deb
 817571c240288d4f8360595c57a253cf4de42cbd 89538 libcryptsetup4_1.4.1-1_amd64.deb
 b2eed63ed581b24a55560121a0babc8e20dd94f6 49366 
libcryptsetup-dev_1.4.1-1_amd64.deb
 ec85722f4c27bcac95057e97e8a8816d7bd7c7fd 35952 
cryptsetup-udeb_1.4.1-1_amd64.udeb
 2b9834bbadab2c06a51f8af72d6f5a76aa30a3e0 47360 
libcryptsetup4-udeb_1.4.1-1_amd64.udeb
Checksums-Sha256: 
 edc3177f0b88ca1b8817e9089a81caa7378cfea8e45741d5c8c3ee167f06c136 2483 
cryptsetup_1.4.1-1.dsc
 82b143328c2b427ef2b89fb76c701d311c95b54093c21bbf22342f7b393bddcb 772971 
cryptsetup_1.4.1.orig.tar.bz2
 84fd7fcf2328d515677744baf7d3993c4bddc2ea43ec3c22d6d1419ed170f1ca 89477 
cryptsetup_1.4.1-1.debian.tar.gz
 08e24d874abcca6d70f1b0bb7170d049430ea75d0cead65967621cba1bbdfe94 210348 
cryptsetup_1.4.1-1_amd64.deb
 28a0d19d9e8d7e602eae6a91fbc6776bafd6028ebdcf1f093cedc7006a18afc5 89538 
libcryptsetup4_1.4.1-1_amd64.deb
 cad3b8b4377169be7d086c4f2cf1e9f9b0955e47083768113c93f5e1a3af5124 49366 
libcryptsetup-dev_1.4.1-1_amd64.deb
 90c140170b76a4c6bb26ae6daf5ba2f3fae4d6c639976bd346491f90c120c02a 35952 
cryptsetup-udeb_1.4.1-1_amd64.udeb
 e295fac16c1f5c79672479c28716721eb5991c81127995a89704941bd79171de 47360 
libcryptsetup4-udeb_1.4.1-1_amd64.udeb
Files: 
 14602ebf03e68346433f3119c40ed978 2483 admin optional cryptsetup_1.4.1-1.dsc
 9253b3f29abf5c6f333eb74128b0df1c 772971 admin optional 
cryptsetup_1.4.1.orig.tar.bz2
 13e029d1aba33ff343b2b5295a3f6145 89477 admin optional 
cryptsetup_1.4.1-1.debian.tar.gz
 bd9ce6dd3d82e79fc14be85883a75545 210348 admin optional 
cryptsetup_1.4.1-1_amd64.deb
 5deafd2ce02e33d8aac3136eecfe77fd 89538 libs optional 
libcryptsetup4_1.4.1-1_amd64.deb
 6abab27749a5f47543cc40ec46136597 49366 libdevel optional 
libcryptsetup-dev_1.4.1-1_amd64.deb
 bb9f39a198e385e3445fd38b71e1b6a2 35952 debian-installer optional 
cryptsetup-udeb_1.4.1-1_amd64.udeb
 616ed17b60621a69bdeec4d2e53ee3be 47360 debian-installer optional 
libcryptsetup4-udeb_1.4.1-1_amd64.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJPLej7AAoJEFJi5/9JEEn+RywP/jb8EKRNK6kBcRPvlrT4NeCM
gC2VimsY1/06y8tFBTgKhdSOy/YOF4a22yCRZUHOmCzVgS1kwi7fIx3cYaYw9yIU
cK70b0m8RjpU7VnEdRCd7//4BaWff+uDag6oq03YNUmyRJbb+EE9757JyEEnmS4c
uU+aDCy+bOyVJEeXXafRvjUHwS69brBT9+6QifYVR2wMa/1Aitxs+QqQRn88BNhM
dzyusE1W4N368RWQBjwtKTUc3vf7l6d+6jM6Jyh1ARZjG4drFccZFb1lFAY+9+8f
eI3F2r7YkPIVUcWmDKRJlwBPzG+7t+YgSgCTaygbo3pQEx7mIQsjBUnnynbtoGmQ
yHBlyY5NXt0DTlS0iaoCdtreziiGk81Dg3hs3z+6Oj3WnJwbtZEx3xQAMGmNVgOS
JVvhFqi8C7mU3TX0I7j2nm+Qs14b7JrGUAnLQXT4LtsPhtrorj7WYtxj4tRPQDYU
D8QqNFehCl9zUmk9f1EqT+vFfWEBE9B+yyEe0rzc+xRDAn6A5zI/WRqxRG1cbqoN
xndYzpWx6M2QzcZ8/5QnTsA9nkPO6UB9ui/Zpjml2I9CBtTubkj+q8CRPF0MPKpx
9fvKNje0//g+sbSMUEHSRdPbZfQiVlSEYs0KjInb6RoXFKru0dz3IDsz96F9TX54
coIDmtayOQdiLdriWH6V
=OMpo
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to