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

Bug#252464: please comment



On Tue, Jun 29, 2004 at 03:12:30PM +0200, Sven Luther wrote:
> 
> Yep, that worked for ext2.
> Still via82cxxx is missing though, which means no ide driver on powerpc/pegasos, 
> but this is another bug : 
> 
>   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252466

Well this is because you've CONFIG_IDE_GENERIC compiled in.
It should be built as a module as otherwise there is no way
to maintain the same probe order as a kernel with the IDE
PCI chipset drivers built-in.

However, mkinitrd should load the driver anyway in your case.
Please try this patch.
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Index: mkinitrd
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/initrd-tools/mkinitrd,v
retrieving revision 1.205
diff -u -r1.205 mkinitrd
--- mkinitrd	29 Jun 2004 21:39:32 -0000	1.205
+++ mkinitrd	1 Jul 2004 08:13:20 -0000
@@ -363,6 +363,19 @@
 		fi
 	done
 
+	if [ -d "$MODULEDIR/kernel/drivers/ide/pci" ]; then
+		IDE_PCI_MODULES=$(
+			find "$MODULEDIR/kernel/drivers/ide/pci" \
+				-name "*.$o" -printf '%f\n' |
+				sed 's%\.'$o'$%%'
+		)
+		if [ -n "$IDE_PCI_MODULES" ]; then
+			printf '%s > /dev/null 2>&1\n' $IDE_PCI_MODULES
+			echo unload_unused_ide "'$oldstyle'" $IDE_PCI_MODULES \
+				>&5
+		fi
+	fi
+
 	case $IDE_MODULE in
 	ide-probe-mod)
 		IDE_CORE=ide-mod
@@ -377,19 +390,6 @@
 		;;
 	esac
 
-	if [ -d "$MODULEDIR/kernel/drivers/ide/pci" ]; then
-		IDE_PCI_MODULES=$(
-			find "$MODULEDIR/kernel/drivers/ide/pci" \
-				-name "*.$o" -printf '%f\n' |
-				sed 's%\.'$o'$%%'
-		)
-		if [ -n "$IDE_PCI_MODULES" ]; then
-			printf '%s > /dev/null 2>&1\n' $IDE_PCI_MODULES
-			echo unload_unused_ide "'$oldstyle'" $IDE_PCI_MODULES \
-				>&5
-		fi
-	fi
-
 	echo $IDE_MODULE
 	if [ $IDE_MODULE = ide-detect ]; then
 		print_module drivers/ide/ide-generic

Reply to: