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

Bug#261780: marked as done (hw-detect.sh lists obsolete kernel modules)



Your message dated Thu, 4 Aug 2005 15:15:19 -0400
with message-id <20050804191519.GA16065@kitenet.net>
and subject line closing
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Jul 2004 06:17:49 +0000
>From harald.dunkel@t-online.de Tue Jul 27 23:17:48 2004
Return-path: <harald.dunkel@t-online.de>
Received: from mailout02.sul.t-online.com [194.25.134.17] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bphl6-00051T-00; Tue, 27 Jul 2004 23:17:48 -0700
Received: from sfwd00.aul.t-online.de 
	by mailout02.sul.t-online.com with smtp 
	id 1Bphl5-0002jI-00; Wed, 28 Jul 2004 08:17:47 +0200
Received: from [192.168.1.100] (Gorn7iZeoeMYabGi8Dczpmt-2-4eA-HppcewSooaJ4E9a777GLAj6g@[80.146.98.68]) by sfwd00.sul.t-online.de
	with esmtp id 1Bphl1-0pkUeO0; Wed, 28 Jul 2004 08:17:43 +0200
Message-ID: <41074504.3080609@t-online.de>
Date: Wed, 28 Jul 2004 08:17:40 +0200
From: "Harald Dunkel" <harald.dunkel@t-online.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8a3) Gecko/20040727
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: hw-detect.sh lists obsolete kernel modules
Content-Type: multipart/mixed;
 boundary="------------070506060908000100050204"
X-ID: Gorn7iZeoeMYabGi8Dczpmt-2-4eA-HppcewSooaJ4E9a777GLAj6g
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This is a multi-part message in MIME format.
--------------070506060908000100050204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Package: ddetect
Version: 1.00

Hi folks,

hw-detect.sh lists some modules for kernel 2.6, that
don't even exist. I know of

	ide-mod
	ide-probe-mod
	ide-detect

but maybe there are others.

At installation time this produces an error message about
some modules that could not be found.

There are at least 2 options to solve this:

- change hw-detect to list only modules that can be
   found in /lib/modules/`uname -r`

- add some 'if kernel = 2.4' statements to hw_detect.sh
   (see the attached patch)


Regards

Harri

--------------070506060908000100050204
Content-Type: text/x-patch;
 name="hw-detect.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hw-detect.patch"

--- debian-installer/packages/ddetect/hw-detect.sh	2004-07-26 21:58:18.000000000 +0200
+++ debian-installer.new/packages/ddetect/hw-detect.sh	2004-07-27 08:16:59.291955499 +0200
@@ -26,6 +26,14 @@
 # Which discover version to use.  Updated by discover_version()
 DISCOVER_VERSION=1
 
+KERNEL_VERSION=`uname -r`
+KERNEL_SUBLEVEL=`echo $KERNEL_VERSION | sed 's/^[^.]\+\.[^.]\+\.\([0-9]\+\).*/\1/'`
+case $KERNEL_VERSION in
+	2.4.*)
+		KERNEL_IS_24=yup
+		;;
+esac
+
 log () {
 	logger -t hw-detect "$@"
 }
@@ -252,12 +260,18 @@
 # The order of these modules are important.
 get_manual_hw_info() {
 	get_floppy_info
-	# ide-mod and ide-probe-mod are needed for older (2.4.20) kernels
-	echo "ide-mod:Linux IDE driver"
-	echo "ide-probe-mod:Linux IDE probe driver"
+	if [ "$KERNEL_IS_24" -a $KERNEL_SUBLEVEL -le 20 ]; then
+		# ide-mod and ide-probe-mod are needed for older (2.4.20) kernels
+		echo "ide-mod:Linux IDE driver"
+		echo "ide-probe-mod:Linux IDE probe driver"
+	fi
 	get_ide_chipset_info
-	echo "ide-detect:Linux IDE detection" # 2.4.x > 20
-	echo "ide-generic:Linux IDE support" # 2.6
+	if [ "$KERNEL_IS_24" -a $KERNEL_SUBLEVEL -gt 20 ]; then
+		echo "ide-detect:Linux IDE detection" # 2.4.x > 20
+	fi
+	if [ ! "$KERNEL_IS_24" ]; then
+		echo "ide-generic:Linux IDE support" # 2.6
+	fi
 	get_ide_floppy_info
 	echo "ide-disk:Linux ATA DISK"
 	echo "ide-cd:Linux ATAPI CD-ROM"

--------------070506060908000100050204--

---------------------------------------
Received: (at 261780-done) by bugs.debian.org; 4 Aug 2005 19:15:16 +0000
>From joey@kitenet.net Thu Aug 04 12:15:16 2005
Return-path: <joey@kitenet.net>
Received: from kitenet.net [64.62.161.42] (postfix)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E0lBU-0008Oc-00; Thu, 04 Aug 2005 12:15:16 -0700
Received: from dragon.kitenet.net (68-67-225-150.chvlva.adelphia.net [68.67.225.150])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "Joey Hess", Issuer "Joey Hess" (verified OK))
	by kitenet.net (Postfix) with ESMTP id 205BF17FA8
	for <261780-done@bugs.debian.org>; Thu,  4 Aug 2005 19:15:16 +0000 (GMT)
Received: by dragon.kitenet.net (Postfix, from userid 1000)
	id 114E06E278; Thu,  4 Aug 2005 15:15:20 -0400 (EDT)
Date: Thu, 4 Aug 2005 15:15:19 -0400
From: Joey Hess <joeyh@debian.org>
To: 261780-done@bugs.debian.org
Subject: closing
Message-ID: <20050804191519.GA16065@kitenet.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
Delivered-To: 261780-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,ONEWORD autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02


--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Fixed by not displaying a message for these modules.

--=20
see shy jo

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFC8mlHd8HHehbQuO8RAt9NAJ9WgNkU7Vrz8DZoELEYkPDJGnFT6ACffFqU
9wIRkLbfaVUB/OHAd/Ufi/U=
=VKsB
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--



Reply to: