[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#507619: marked as done (MODULES=dep fails for cciss devices)



Your message dated Tue, 16 Dec 2008 15:32:03 +0000
with message-id <E1LCbtz-0004xC-1P@ries.debian.org>
and subject line Bug#507619: fixed in initramfs-tools 0.92m
has caused the Debian Bug report #507619,
regarding MODULES=dep fails for cciss devices
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 owner@bugs.debian.org
immediately.)


-- 
507619: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507619
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.92l
Severity: important
Tags: patch

A coworker reported a lenny install failure today. Turns out he had
asked the installer to run mkinitramfs w/ MODULES=dep, which I'd never
tried before:

dl380g5:/home/dannf# mkinitramfs-kpkg -o /boot/initrd.img-2.6.26-1-686 2.6.26-1-686
mkinitramfs: missing cciss/c0d0p root /dev/cciss/c0d0p1 /sys entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug

dep_add_modules() expects to find a /sys/block/cciss/c0d0p file, but
it should be trying /sys/block/cciss!c0d0:

dl380g5:/tmp/initramfs# ls /sys/block/
cciss!c0d0  loop0  loop3  loop6  ram0	ram11  ram14  ram3  ram6  ram9
cciss!c0d1  loop1  loop4  loop7  ram1	ram12  ram15  ram4  ram7  sr0
cciss!c0d2  loop2  loop5  md0	 ram10	ram13  ram2   ram5  ram8

The following patch seems to fix it for me:

--- /usr/share/initramfs-tools/hook-functions.orig	2008-12-02 16:58:05.000000000 -0700
+++ /usr/share/initramfs-tools/hook-functions	2008-12-02 16:58:53.000000000 -0700
@@ -269,6 +269,9 @@
 		root=${root#/dev/}
 		block=$(awk "/^${root}/{print substr(\$5, 1, 3); exit}" \
 			/proc/mdstat)
+	elif [ "${root#/dev/cciss/}" != "${root}" ]; then
+		block=${root#/dev/cciss/*}
+		block="cciss!${block%p*}"
 	# classical root device
 	else
 		block=${root#/dev/}


fyi, I suspect this may also apply to old-style smart array devices,
where device names are similar, but use 'ida' intead of 'cciss' -
e.g. /dev/ida/c0d0p1.



--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.92m

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

initramfs-tools_0.92m.dsc
  to pool/main/i/initramfs-tools/initramfs-tools_0.92m.dsc
initramfs-tools_0.92m.tar.gz
  to pool/main/i/initramfs-tools/initramfs-tools_0.92m.tar.gz
initramfs-tools_0.92m_all.deb
  to pool/main/i/initramfs-tools/initramfs-tools_0.92m_all.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 507619@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (supplier of updated initramfs-tools 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 ftpmaster@debian.org)


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

Format: 1.8
Date: Tue, 16 Dec 2008 16:01:44 +0100
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.92m
Distribution: unstable
Urgency: medium
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description: 
 initramfs-tools - tools for generating an initramfs
Closes: 426465 502056 502058 503216 504555 505440 507059 507619
Changes: 
 initramfs-tools (0.92m) unstable; urgency=medium
 .
   [ Colin Watson ]
   * scripts/functions: Call ipconfig with a one-minute timeout.
   * Make debug option write to /dev/.initramfs/initramfs.debug,
     so that it can be retrieved after boot.
 .
   [ Julien Danjou ]
   * scripts/functions: Wrong check for udevadm in functions. (closes: #507059)
 .
   [ maximilian attems ]
   * scripts/functions: fix not set break variable. (closes: #502058)
   * MODULES=dep fix for ida devices.
   * hook-functions: alphebetize net drivers, fix typhoon typo.
   * Add atl1e, cxgb, ixgb, ixgbe, mlx4_core, netxen_nic, sfc, tehuti to
     net module list. (closes: #503216)
   * nuke 0.92k goof clean up.
   * postrm: set -e flag.
   * Revert "framebuffer: Let udev create fb devices."
   * scripts/functions: comment fix path to moved linux-2.6
     Documentation.
   * init: Don't leak initramfs-tools exported variables.
     (closes: #426465, #505440)
 .
   [ dann frazier ]
   * Fix MODULES=dep for cciss devices. (closes: #507619)
 .
   [ Michal Pokrywka ]
   * framebuffer: Add support for uvesafb. (closes: #502056)
 .
   [ Andres Salomon ]
   * fix redboot partition support. (closes: #504555)
Checksums-Sha1: 
 702a221cda8521293cc4f4a6b7f3ae7dbf293f73 1004 initramfs-tools_0.92m.dsc
 beb9f30b6faf92ced331b8b68883c2dd0e344428 68035 initramfs-tools_0.92m.tar.gz
 674de477133f0a777c655dda29dfa09475ae3b3e 74958 initramfs-tools_0.92m_all.deb
Checksums-Sha256: 
 db2603b500bb231840c51a328ce778e1058ff42b8776b85e0e67ab633b5ca099 1004 initramfs-tools_0.92m.dsc
 8978327526fc60e5d8ce03fa1abfbc66c57850800cae5b78838018c6c3a85cb4 68035 initramfs-tools_0.92m.tar.gz
 319731ec24a4d819985424e4ccd4c047f6c809084982a091baf45712c32c7c67 74958 initramfs-tools_0.92m_all.deb
Files: 
 38551370f0e1471b0d98e5a6c150d08a 1004 utils optional initramfs-tools_0.92m.dsc
 f5abdcdcce11c76d5c56c3480da884b9 68035 utils optional initramfs-tools_0.92m.tar.gz
 4194efef739007352dba29ddc51a4abb 74958 utils optional initramfs-tools_0.92m_all.deb

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

iEYEARECAAYFAklHxQAACgkQeW7Lc5tEHqhy8ACfVpYJICSK1g8Q5UJlXEzQcOKT
s7QAoKAdT3zEX83hdT06im7Up8+BqtGT
=hhrO
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: