Your message dated Thu, 15 Oct 2009 19:01:40 +0000
with message-id <[email protected]>
and subject line Bug#541248: fixed in cryptsetup 2:1.1.0~rc2-1
has caused the Debian Bug report #541248,
regarding initramfs-tools: Hard to debug lvm issues in cryptroot script
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.)
--
541248: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541248
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.92o
Severity: normal
Tags: patch
The /usr/share/initramfs-tools/scripts/local-top/cryptroot script used
with encrypted root does not print debugging information when checks fail.
This makes it hard to debug initramfs failures.
The following patch adds messages to the LVM section and enabled me
to debug issues with legacy lvm on Lenny.
--- cryptroot 2009-08-12 09:03:58.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/cryptroot 2009-08-12
09:07:02.000000000 +0100
@@ -124,12 +124,19 @@
vg="${1#/dev/mapper/}"
# Sanity checks
- if [ ! -x /sbin/lvm ] || [ "$vg" = "$1" ]; then
+ if [ ! -x /sbin/lvm ]; then
+ message "lvm is not available"
+ return 1
+ fi
+
+ if [ "$vg" = "$1" ]; then
+ message "Volume group name collision"
return 1
fi
# Make sure that the device contains at least one dash
if [ "${vg%%-*}" = "$vg" ]; then
+ message "Expected at least one dash in volumne group device
name: $vg"
return 1
fi
-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/thebes-root ro
-- /proc/filesystems
ext3
-- lsmod
Module Size Used by
battery 10180 0
ppdev 6500 0
lp 8164 0
acpi_cpufreq 6796 0
cpufreq_powersave 1856 0
cpufreq_stats 3776 0
cpufreq_ondemand 6476 2
cpufreq_conservative 5960 0
cpufreq_userspace 3172 0
freq_table 4224 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
ipv6 235364 41
loop 12748 0
parport_pc 22500 1
parport 30988 3 ppdev,lp,parport_pc
snd_hda_intel 325688 0
snd_pcm_oss 32832 0
pcspkr 2432 0
snd_mixer_oss 12320 1 snd_pcm_oss
iTCO_wdt 9508 0
snd_pcm 62596 2 snd_hda_intel,snd_pcm_oss
i2c_i801 7920 0
i2c_core 19828 1 i2c_i801
rng_core 3940 0
snd_seq_dummy 2660 0
snd_seq_oss 24992 0
snd_seq_midi 5728 0
snd_rawmidi 18528 1 snd_seq_midi
snd_seq_midi_event 6432 2 snd_seq_oss,snd_seq_midi
snd_seq 41456 6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 17800 2 snd_pcm,snd_seq
snd_seq_device 6380 5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 45604 9
snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
button 6096 0
intel_agp 22556 1
agpgart 28776 1 intel_agp
soundcore 6368 1 snd
snd_page_alloc 7816 2 snd_hda_intel,snd_pcm
evdev 8000 3
ext3 105512 6
jbd 39444 1 ext3
mbcache 7108 1 ext3
sha256_generic 11360 0
aes_i586 7744 2
aes_generic 29256 1 aes_i586
cbc 3264 1
dm_crypt 11172 1
crypto_blkcipher 15236 3 cbc,dm_crypt
dm_mirror 15104 0
dm_log 8484 1 dm_mirror
dm_snapshot 14340 0
dm_mod 46184 19 dm_crypt,dm_mirror,dm_log,dm_snapshot
sd_mod 22200 3
ide_pci_generic 3908 0 [permanent]
ata_piix 14180 2
piix 6568 0 [permanent]
ide_core 96136 2 ide_pci_generic,piix
floppy 47748 0
ata_generic 4676 0
libata 140416 2 ata_piix,ata_generic
scsi_mod 129324 2 sd_mod,libata
skge 33360 0
dock 8304 1 libata
ehci_hcd 28396 0
uhci_hcd 18672 0
usbcore 118224 3 ehci_hcd,uhci_hcd
thermal 15228 0
processor 32544 2 acpi_cpufreq,thermal
fan 4164 0
thermal_sys 10856 3 thermal,processor,fan
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
sdb5_crypt /dev/disk/by-uuid/3556be3d-b1c5-4db5-89ef-ad69e1d36219 none luks
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.12-2 small utilities built with klibc f
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.125-7+lenny1 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.10.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: cryptsetup
Source-Version: 2:1.1.0~rc2-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.1.0~rc2-1_amd64.udeb
to pool/main/c/cryptsetup/cryptsetup-udeb_1.1.0~rc2-1_amd64.udeb
cryptsetup_1.1.0~rc2-1.diff.gz
to pool/main/c/cryptsetup/cryptsetup_1.1.0~rc2-1.diff.gz
cryptsetup_1.1.0~rc2-1.dsc
to pool/main/c/cryptsetup/cryptsetup_1.1.0~rc2-1.dsc
cryptsetup_1.1.0~rc2-1_amd64.deb
to pool/main/c/cryptsetup/cryptsetup_1.1.0~rc2-1_amd64.deb
cryptsetup_1.1.0~rc2.orig.tar.gz
to pool/main/c/cryptsetup/cryptsetup_1.1.0~rc2.orig.tar.gz
libcryptsetup-dev_1.1.0~rc2-1_amd64.deb
to pool/main/c/cryptsetup/libcryptsetup-dev_1.1.0~rc2-1_amd64.deb
libcryptsetup1_1.1.0~rc2-1_amd64.deb
to pool/main/c/cryptsetup/libcryptsetup1_1.1.0~rc2-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: Thu, 15 Oct 2009 19:26:14 +0200
Source: cryptsetup
Binary: cryptsetup cryptsetup-udeb libcryptsetup1 libcryptsetup-dev
Architecture: source amd64
Version: 2:1.1.0~rc2-1
Distribution: unstable
Urgency: low
Maintainer: Debian Cryptsetup Team
<[email protected]>
Changed-By: Jonas Meurer <[email protected]>
Description:
cryptsetup - configures encrypted block devices
cryptsetup-udeb - configures encrypted block devices (udeb)
libcryptsetup-dev - libcryptsetup development files
libcryptsetup1 - libcryptsetup shared library
Closes: 387159 475838 480157 532579 533643 536415 537385 541248 541805 544487
544773 547597 548356 548988 549870
Changes:
cryptsetup (2:1.1.0~rc2-1) unstable; urgency=low
.
* new upstream release candidate (1.1.0-rc2), highlights include:
- new libcryptsetup API (documented in libcryptsetup.h)
- luksHeaderBackup and luksHeaderRestore commands (closes: #533643)
- use libgcrypt, enables all gcrypt hash algorithms for LUKS through
-h luksFormat option (closes: #387159, #537385)
- new --master-key-file option for luksFormat and luksAddKey
- use dm-uuid for all crypt devices, contains device type and name now
(closes: #548988, #549870)
- command successful messages moved to verbose level (closes: #541805)
- several code changes to improve speed of luksOpen (closes: #536415)
- luksSuspend and luksResume commands
* remove unneeded patches 03_read_rework and 04_no_stderr_success, update
02_manpage for new upstream release candidate.
* update patch to comply with DEP-3 (http://dep.debian.net/deps/dep3/)
* fix initramfs/cryptroot-hook to support setups where /dev/mapper/ contains
symlinks to devices at /dev/dm-*. the lvm2/device-mapper packages had
defaults changed to this temporary. it has been fixed in a subsequent
upload of lvm2 in the meantime, but still it's not a bad idea to be
prepared for such setups in the future. that way cryproot now supports
/dev/dm-* devices as well. (closes: #532579, #544487, #544773)
* fix initscript dependencies both for cryptdisks and cryptdisks-early.
thanks to Petter Reinholdtsen for bugreport and patch. (closes: #548356)
* finally change default behaviour of initscripts/cryptroot-hook to include
all available crypto modules into the initramfs. this change should fix
any problems with cryto modules missing from the initramfs. announce the
change in NEWS.Debian. (closes: #547597)
* add error messages to lvm detecting code in initramfs/cryptroot-script
in order to make debugging easier. (closes: #541248)
* implement detection of devices which are required by decrypt_derived
keyscript in initscripts/cryptroot-hook. that way setups where encrypted
swap has the key derived from non-root partitions should support suspend/
resume as well. (closes: #475838)
* remove outdated documentation from the source package: CryptoRoot.HowTo,
CheckSystem.Doc
* mention in README.initramfs that busybox is required for cryptroot to work
* stop creating /etc/keys in postinst maintainer script.
* update build system to include library files again: (closes: #480157)
- split into three packages: cryptsetup, libcryptsetup1, libcryptsetup-dev
- rename preinst to cryptsetup.preinst, copy code to create /etc/crypttab
skeleton into cryptsetup-udeb.preinst.
- build with --enable-shared and --enable-static for libcryptsetup.a
- create debian/libcryptsetup1.symbols with help of dpkg-gensymbols
* add debian/cryptsetup.lintian-override for two false positives
* raise build-depends on debhelper and debian/compat for that reason
* update README.remote to work with latest dropbear package. thanks to
[email protected].
* make all crypttab fields available to keyscripts as environment variables.
thanks to ludwig nussel from suse for idea and implmentation. document
this in crypttab(5) manpage. impelement the same environment variables in
initramfs cryptroot script.
* fix formatting errors in crypttab(5) manpage.
Checksums-Sha1:
f03c40ca6979ac50352d83f8f87b4a10f0566599 1551 cryptsetup_1.1.0~rc2-1.dsc
eeed2f2fd1557b72997211108dc9ccb0aedc66a1 511212
cryptsetup_1.1.0~rc2.orig.tar.gz
835bea9710d55bb09c1aee454ccbad07b168bb13 67590 cryptsetup_1.1.0~rc2-1.diff.gz
873a77d4e747b202506e84bb7eb74ff970e02bd8 365122
cryptsetup_1.1.0~rc2-1_amd64.deb
25cb2f778d6dee38adf8777bbe9b04c1d2f30bc5 289534
cryptsetup-udeb_1.1.0~rc2-1_amd64.udeb
f00378cb8adf5422f256ee621b3593071e15306a 69338
libcryptsetup1_1.1.0~rc2-1_amd64.deb
e45cddaf4454e9869d8ca480e2e9408191df9f8b 79256
libcryptsetup-dev_1.1.0~rc2-1_amd64.deb
Checksums-Sha256:
be6a2bd497a4c4b5158fe159664236330532388361bdbf7b4728f18e5c1e78af 1551
cryptsetup_1.1.0~rc2-1.dsc
b3adc7f48eb1867752a4da7f7682cde8ca5bc8b098f47b7ed6475f4abe67da8a 511212
cryptsetup_1.1.0~rc2.orig.tar.gz
f7219582a123f2372ecf8c61ff67b004821b4587321926bb6ebc657833b7f36b 67590
cryptsetup_1.1.0~rc2-1.diff.gz
2a958451404f247526a1fd5f23643b8c1dba5a17ee2502da91431dbbc7f241a8 365122
cryptsetup_1.1.0~rc2-1_amd64.deb
7acf83d69d3d4e8ab4a55eaba70d1ea5c9dfbb27ca8e8862f45319ae80ccde6e 289534
cryptsetup-udeb_1.1.0~rc2-1_amd64.udeb
7fd47d59904184c4991cfaa584e68a86c917039f94d458a864c50024e75f0fce 69338
libcryptsetup1_1.1.0~rc2-1_amd64.deb
1b2c9fc1b74b4012110d249ad50111ae08297ebdf100c928d6232bcbe6ccf1ec 79256
libcryptsetup-dev_1.1.0~rc2-1_amd64.deb
Files:
35e0605fa09f3a887a68c4cf613d5bd9 1551 admin optional cryptsetup_1.1.0~rc2-1.dsc
4a5e5c8b04f8ec54ebb75b4b8ea3dff6 511212 admin optional
cryptsetup_1.1.0~rc2.orig.tar.gz
c3405f8743465deb0314559bd0a2efaa 67590 admin optional
cryptsetup_1.1.0~rc2-1.diff.gz
4b818ae254470477e6b3bada3a178443 365122 admin optional
cryptsetup_1.1.0~rc2-1_amd64.deb
236c8fb841d1ef9e6490807b1577a7ab 289534 debian-installer optional
cryptsetup-udeb_1.1.0~rc2-1_amd64.udeb
2cf2d093b58399e3c039e3edb3252899 69338 libs optional
libcryptsetup1_1.1.0~rc2-1_amd64.deb
77053048c938ce9a68bb9f1054656190 79256 libdevel optional
libcryptsetup-dev_1.1.0~rc2-1_amd64.deb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkrXW+UACgkQd6lUs+JfIQKh5gCdFa7c6GqY5bELpuomVEyNP0Da
Pa0An3ROTpNYuOVy/hklzAgNLNMlucfs
=g9Dw
-----END PGP SIGNATURE-----
--- End Message ---