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

Bug#224745: hw-detect: Reports errors for sd_mod and sr_mod when support is compiled statically into the kernel



Package: hw-detect
Version: 0.58

Hw-detect reports an error when it cannot load the modules sd_mod and
sr_mod. This is also the case when these modules do not exist because
they are compiled statically into the kernel (like it is the case
for the default mips and mipsel kernels).

Hw-detect should check whether SCSI-Disk- and SCSI-CDROM is present
in the kernel before it tries to load the modules. This can be
accomplished with the following patch:

Index: debian-installer/tools/ddetect/hw-detect.sh
===================================================================
RCS file: /cvsroot/d-i/debian-installer/tools/ddetect/hw-detect.sh,v
retrieving revision 1.43
diff -r1.43 hw-detect.sh
221,224c221,228
< 	for module in sd_mod sr_mod; do
< 		if is_not_loaded "$module" ; then
< 			load_modules $module
< 			register-module $module
---
> 	for module in sd sr; do
> 		if is_not_loaded "${module}_mod" ; then
> 			if grep -q $module /proc/devices ; then
> 				log "Module ${module}_mod is compiled in statically"
> 			else
> 				load_modules ${module}_mod
> 				register-module ${module}_mod
> 			fi

Regards,
Karsten
-- 
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.



Reply to: