Your message dated Mon, 08 Mar 2010 13:47:12 +0000
with message-id <[email protected]>
and subject line Bug#559510: fixed in cryptsetup 2:1.1.0-1
has caused the Debian Bug report #559510,
regarding generates a huge ramdisk because all modules are copied
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.)


-- 
559510: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559510
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cryptsetup
Version: 2:1.1.0~rc2-1
Severity: important
Tags: patch

After installing cryptsetup on my armel machine, the initramfs grew
from 4.5 MB to 15 MB, causing an error because the ramdisk no longer
fit in flash.  All modules were copied to the ramdisk!

This is because armel (and some other arches) don't have a kernel/arch
directory, and you do:

  archcrypto="$(find "$MODULESDIR/kernel/arch" -type d -name "crypto")"
  copy_modules_dir "${archcrypto##*${MODULESDIR}/}"

In my case, copy_modules_dir is executed with an empty argument,
apparently leading to all modules being copied.

The fix is to check if $archcrypto is empty.

I also added some checks for the kernel/arch dir because otherwise
your find calls generate "No such file or directory" messages.

--- cryptroot~  2009-12-04 23:13:44.319569469 +0000
+++ cryptroot   2009-12-04 23:13:39.679818772 +0000
@@ -442,12 +442,14 @@
        #
        #   d) /lib/modules/$VERSION/kernel/drivers/crypto/$specific-$mod.ko
 
-       for file in $(find "$MODULESDIR/kernel/arch/" -name "$mod-*.ko"); do
-               altmod="${file##*/}"
-               altmod="${altmod%.ko}"
-               manual_add_modules "$altmod"
-               found="yes"
-       done
+       if [ -e "$MODULESDIR/kernel/arch/" ]; then
+               for file in $(find "$MODULESDIR/kernel/arch/" -name 
"$mod-*.ko"); do
+                       altmod="${file##*/}"
+                       altmod="${altmod%.ko}"
+                       manual_add_modules "$altmod"
+                       found="yes"
+               done
+       fi
 
        for file in $(find "$MODULESDIR/kernel/crypto/" -name 
"${mod}_generic.ko"); do
                altmod="${file##*/}"
@@ -499,8 +501,12 @@
        setup="yes"
 
        if [ "$MODULES" = "most" ]; then
-               archcrypto="$(find "$MODULESDIR/kernel/arch" -type d -name 
"crypto")"
-               copy_modules_dir "${archcrypto##*${MODULESDIR}/}"
+               if [ -e "$MODULESDIR/kernel/arch" ]; then
+                       archcrypto="$(find "$MODULESDIR/kernel/arch" -type d 
-name "crypto")"
+                       if [ -n "$archcrypto" ]; then
+                               copy_modules_dir 
"${archcrypto##*${MODULESDIR}/}"
+                       fi
+               fi
                copy_modules_dir "kernel/crypto"
        else
                for mod in $modules; do

-- 
Martin Michlmayr
http://www.cyrius.com/



--- End Message ---
--- Begin Message ---
Source: cryptsetup
Source-Version: 2:1.1.0-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-1_amd64.udeb
  to main/c/cryptsetup/cryptsetup-udeb_1.1.0-1_amd64.udeb
cryptsetup_1.1.0-1.diff.gz
  to main/c/cryptsetup/cryptsetup_1.1.0-1.diff.gz
cryptsetup_1.1.0-1.dsc
  to main/c/cryptsetup/cryptsetup_1.1.0-1.dsc
cryptsetup_1.1.0-1_amd64.deb
  to main/c/cryptsetup/cryptsetup_1.1.0-1_amd64.deb
cryptsetup_1.1.0.orig.tar.gz
  to main/c/cryptsetup/cryptsetup_1.1.0.orig.tar.gz
libcryptsetup-dev_1.1.0-1_amd64.deb
  to main/c/cryptsetup/libcryptsetup-dev_1.1.0-1_amd64.deb
libcryptsetup1_1.1.0-1_amd64.deb
  to main/c/cryptsetup/libcryptsetup1_1.1.0-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: SHA256

Format: 1.8
Date: Mon, 08 Mar 2010 14:15:35 +0100
Source: cryptsetup
Binary: cryptsetup cryptsetup-udeb libcryptsetup1 libcryptsetup-dev
Architecture: source amd64
Version: 2:1.1.0-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: 557329 557405 559184 559510 560034 563162 563975 570418 572463
Changes: 
 cryptsetup (2:1.1.0-1) unstable; urgency=low
 .
   * NOT RELEASED YET
   * new upstream stable release (1.1.0), notable changes since rc2:
     - default key size for LUKS changed from 128 to 256 bits
     - default plain mode changed to aes-cbc-essiv:sha256
     - key slot and key diggest iteration minimum set to 1000
     - convert hash name to lower case in header
   * update patch 02_manpage
   * add more supported filesystems to passdev.c, isofs->iso9660. thanks to
     Christoph Anton Mitterer. (closes: #557405)
   * update to standards-version 3.8.4, no changes needed
   * accept spaces in $opts at postinst script. (closes: #559184)
   * set extended $PATH in cryptdisks.functions. thanks to christoph anton
     mitterer. (closes: #557329)
   * fix huge initramfs for archs which don't have kernel/arch directory.
     thanks to martin michlmayr for bugreport and patch. (closes: #559510)
   * support commandline options to mkfs in luksformat. thanks to eduard
     bloch for bugreport and patch. (closes: #563975)
   * extend error messages for evms setup in cryptroot-script
   * add 03_luksAddKey.patch, to not verify unlocking passphrase in luksAddKey
     command. (closes: #570418)
   * add 04_crypto_init.patch, to properly initialise crypto backend in header
     backup/restore commands.
   * change build-dependency on cvs to new autopoint package (closes: #572463)
   * rename decrypt_gpg keyscript to decrypt_gnupg, improve it based on ideas
     by Christoph Anton Mitterer, mention the keyscript rename in NEWS.Debian.
     Also, provide a initramfs cryptgnupg hook script. Thanks to Christoph
     Anton Mitterer for bugreport and ideas. (closes: #560034)
   * check for root privileges with '/usr/bin/id -u' in init scripts and
     cryptdisks_{start|stop}. (closes: #563162)
Checksums-Sha1: 
 8fe4a3f4f5157ef64148a78c9618446f40066ca4 1823 cryptsetup_1.1.0-1.dsc
 398dbd8af0b5aa815a4366bb2dac996154952046 546062 cryptsetup_1.1.0.orig.tar.gz
 4193aef3b645cbde70f56413fb685153fd31ec50 69714 cryptsetup_1.1.0-1.diff.gz
 4f3148ac213586cbd3f703ef26dfa4c42979c8fd 392226 cryptsetup_1.1.0-1_amd64.deb
 719a49c24e184858e9abe401e8d3ad78fd05407a 296130 
cryptsetup-udeb_1.1.0-1_amd64.udeb
 c28490e35e584161f346572597b3f1ff314f4672 72432 libcryptsetup1_1.1.0-1_amd64.deb
 595137e85cfce04e70affad41fed31c624fb7141 82734 
libcryptsetup-dev_1.1.0-1_amd64.deb
Checksums-Sha256: 
 7028f96775328a57e324506cc05768c7453e3fe5035f4ce3c8e7f03b491621fa 1823 
cryptsetup_1.1.0-1.dsc
 c278da68e916802497baebd60dcf34a9645cf2b525ab7a537dd9964d63aaf439 546062 
cryptsetup_1.1.0.orig.tar.gz
 5a3794d1e6e483c495d67c6d61154d1f4d7e2a83cad3f400af6aa60d6770b55a 69714 
cryptsetup_1.1.0-1.diff.gz
 efc7c985913255ba806f4268f7aa559db151bbd7f74d1ddb44da53e60dce8cbb 392226 
cryptsetup_1.1.0-1_amd64.deb
 d1ebb84760caa3fd611490935a575a558ab7abbbbc153ffcb6ecd6f0d8633738 296130 
cryptsetup-udeb_1.1.0-1_amd64.udeb
 7787cbcdb03edb5805d7ba2b5f3fd6efbbeda426cd6448aba383221885c59b99 72432 
libcryptsetup1_1.1.0-1_amd64.deb
 0aea4f76626ec84c70ea226a761a91698bf35ad371c8711d0679e2b8fc69689d 82734 
libcryptsetup-dev_1.1.0-1_amd64.deb
Files: 
 57a6f22a209f7b7b7fae16b4763bf0e2 1823 admin optional cryptsetup_1.1.0-1.dsc
 a7b8f54f7c9f41633a8d61aaa209186e 546062 admin optional 
cryptsetup_1.1.0.orig.tar.gz
 d59c69d8e32b177cdc30f1958c09799b 69714 admin optional 
cryptsetup_1.1.0-1.diff.gz
 55a45afbed543f2cba41a6342d6d2e16 392226 admin optional 
cryptsetup_1.1.0-1_amd64.deb
 591d86280c2041c2f2b12c448e27f28b 296130 debian-installer optional 
cryptsetup-udeb_1.1.0-1_amd64.udeb
 ab66a2469ca56c27868ee34aaa5e3b12 72432 libs optional 
libcryptsetup1_1.1.0-1_amd64.deb
 7799157a368e1c9be478d5bbcb427252 82734 libdevel optional 
libcryptsetup-dev_1.1.0-1_amd64.deb
Package-Type: udeb

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

iQEcBAEBCAAGBQJLlPkXAAoJEHUY1PcOVR4zf+MH+gN/k2TGS7FS/OtQVLGw1u8H
5ZXrjml0LvWxC6zJW7R2niOTL47zAYH11NwFoHYqc7ru23NBLhTFZioHOkg6/6uz
f2PT1/rTxSVaX2wcdr2znoMo7b9S3mvno15LmBc5z60NWXIS+zTjrTp5mSa8J8L0
Z9LbeHpItdhi3IVGL2cpKL4mKbUXwylu73zvZBjl1Ny9oG+J2iufQeVJUqQBJbzZ
QDOZM1xORCaZ+xhn9au23PZgdiPH6Z/PJbuCY+UndCR/20ndNj/vrPx2MpP7x4Qx
nOzLV/5tjU1Qjj3GDJ+7CQNngV8L3r1NSsXoOU5IVp1v1ZHxZhDv9FSixsrf8XU=
=KlmA
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to