--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: hw-detect: Install mmc-modules automatically if needed
- From: Thibaut GIRKA <thib@sitedethib.com>
- Date: Sun, 15 Aug 2010 17:02:54 +0200
- Message-id: <20100815150254.26624.48484.reportbug@localhost.localdomain>
Package: hw-detect
Severity: minor
Tags: patch
Some devices don't have a hard drive.
Instead of manually specifying modules for each device, it might be possible to
guess which device needs additional modules.
This patch implements one way to do this, by installing mmc-modules if no disk
are found.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (120, 'unstable'), (105, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.35-rc3+ (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From c784989b10d3e72601e59a8c73723166684fd12d Mon Sep 17 00:00:00 2001
From: Thibaut Girka <thib@sitedethib.com>
Date: Sun, 15 Aug 2010 13:30:38 +0200
Subject: [PATCH 1/9] hw-detect: install mmc-modules if no disks are found
---
packages/hw-detect/hw-detect.sh | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/packages/hw-detect/hw-detect.sh b/packages/hw-detect/hw-detect.sh
index 3e49a42..32483c9 100755
--- a/packages/hw-detect/hw-detect.sh
+++ b/packages/hw-detect/hw-detect.sh
@@ -29,6 +29,13 @@ if [ -d /sys/bus/pci/devices ] && \
anna-install virtio-modules || true
fi
+# Install mmc modules if no other disks are found
+# (ex: embedded device with µSD storage)
+# TODO: more checks? move that to disk-detect?
+if [ -z "$(list-devices disk)" ]; then
+ anna-install mmc-modules || true
+fi
+
if [ -x /sbin/depmod ]; then
depmod -a > /dev/null 2>&1 || true
fi
--
1.7.1
--- End Message ---
--- Begin Message ---
Source: hw-detect
Source-Version: 1.85
We believe that the bug you reported is fixed in the latest version of
hw-detect, which is due to be installed in the Debian FTP archive:
archdetect_1.85_i386.udeb
to main/h/hw-detect/archdetect_1.85_i386.udeb
disk-detect_1.85_all.udeb
to main/h/hw-detect/disk-detect_1.85_all.udeb
driver-injection-disk-detect_1.85_all.udeb
to main/h/hw-detect/driver-injection-disk-detect_1.85_all.udeb
ethdetect_1.85_all.udeb
to main/h/hw-detect/ethdetect_1.85_all.udeb
hw-detect_1.85.dsc
to main/h/hw-detect/hw-detect_1.85.dsc
hw-detect_1.85.tar.gz
to main/h/hw-detect/hw-detect_1.85.tar.gz
hw-detect_1.85_i386.udeb
to main/h/hw-detect/hw-detect_1.85_i386.udeb
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 593108@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jurij Smakov <jurij@debian.org> (supplier of updated hw-detect 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: Sun, 27 Feb 2011 12:33:23 +0000
Source: hw-detect
Binary: hw-detect ethdetect disk-detect driver-injection-disk-detect archdetect
Architecture: source i386 all
Version: 1.85
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Jurij Smakov <jurij@debian.org>
Description:
archdetect - Hardware architecture detector (udeb)
disk-detect - Detect disk drives (udeb)
driver-injection-disk-detect - Detect OEM driver injection disks (udeb)
ethdetect - Detect network hardware and load kernel drivers for it (udeb)
hw-detect - Detect hardware and load kernel drivers for it (udeb)
Closes: 525902 525946 593108 606984 611314
Changes:
hw-detect (1.85) unstable; urgency=low
.
* discover-mac-io.sh: Fix module loading for Ibook G4 (powermac). Closes:
#525902, #525946, #606984.
Thanks to Risto Suominen <risto.suminen@gmail.com>.
* Install mmc-modules if no disk is found, since some devices may not
have hard drives, but SD slots instead. Closes: #593108
* Increase the number of attempts to detect the new disk devices in
disk_found() of disk-detect.sh to 15, bringing the total waiting time
to 28 seconds. Current timeout of 4 seconds is not sufficient for
some SCSI subsystems with long driver/disk initialization time.
Closes: #611314
Checksums-Sha1:
5d89db4da3ae895fa2d1e4ca6eec749897527034 1041 hw-detect_1.85.dsc
64fd5fe0d791fa05ba580df0313770022fc8dbe4 194088 hw-detect_1.85.tar.gz
ab4c6ee196079700ef57d91f5563d41a035bd9fe 104330 hw-detect_1.85_i386.udeb
8ea86266a86884b0f91cb417c065be79c0729ad5 29282 ethdetect_1.85_all.udeb
fca338065872b768d6f6bc16f0438df033071dd7 22624 disk-detect_1.85_all.udeb
96db95f6fdf72336c3a0ccd439dbfdea8e852e57 12236 driver-injection-disk-detect_1.85_all.udeb
5dd9b806d9e5c52ddde655a61ca97df779f02aa3 2304 archdetect_1.85_i386.udeb
Checksums-Sha256:
65c71efe851cba19859a74cc5c57a1512e577beb6ba905840103a05b9e5035ad 1041 hw-detect_1.85.dsc
9e06d49e9b62eeb628334097164236f02f0fb1f9d704a74f30bd5b088316389f 194088 hw-detect_1.85.tar.gz
a67652e30cc9bd692a86ed0108feb51860a6975307f81db1ddabbb1e459ca9fe 104330 hw-detect_1.85_i386.udeb
932caa236ee567aa021c0d0039625c461b33386c19a763ea0f0412653daf6f8a 29282 ethdetect_1.85_all.udeb
4f273e8b984f680f378f3d18919e69e6b84e57e32989d50c8391cb31a3aa0aa7 22624 disk-detect_1.85_all.udeb
59587c656e1eb69bc3963bbfb4fc589d83ccf0eec85cea4ee4c9deef46d48f09 12236 driver-injection-disk-detect_1.85_all.udeb
87bd6c658f368ce0e5dacc4a53b91d1810b05149126978643e06898389374b32 2304 archdetect_1.85_i386.udeb
Files:
3cb524f6a6eeda353327778824e14e38 1041 debian-installer standard hw-detect_1.85.dsc
c3876ffc0f1e42f81631b26ca3916465 194088 debian-installer standard hw-detect_1.85.tar.gz
1f8f015a07722308028b8f44454b757b 104330 debian-installer standard hw-detect_1.85_i386.udeb
8dbee6714b0f3b9a488ee8d431374dc2 29282 debian-installer optional ethdetect_1.85_all.udeb
319bcb9ec9590fedf2cdb6d1cc60a341 22624 debian-installer optional disk-detect_1.85_all.udeb
4668292ab46deb70b78f7bb2fc863ddf 12236 debian-installer optional driver-injection-disk-detect_1.85_all.udeb
e9b6758f0fca69962633f9fadb50c994 2304 debian-installer standard archdetect_1.85_i386.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk1qSAUACgkQjjectMmeA8yKEACfZgfVoGZUYBpITrg+qBWJtxIW
bEkAoKI2Po5xnEUZdBX2pJ8U0JUnOB3c
=0J+7
-----END PGP SIGNATURE-----
--- End Message ---