It looks like this happens because ide-generic should be loaded in the last 
place (not only after piix).

This patch fixes it, adding ide-generic at the end of the modules list instead 
of after the other ide driver.

Best regards

-- 
Isaac Clerencia at Warp Networks, http://www.warp.es
Work: <[EMAIL PROTECTED]>   | Debian: <[EMAIL PROTECTED]>
--- Hardware.pm.orig	2006-01-04 18:35:12.000000000 +0100
+++ Hardware.pm	2006-01-04 18:38:38.000000000 +0100
@@ -247,10 +247,15 @@
 	# far from ideal, since that would end up with silently non-booting
 	# kernels on piix machine without ide-generic in the kernel.
 	#
-	$result = [ map { $_ eq "via82cxxx" ?  ($_, "ide-generic") : $_ } @{$result} ];
-	$result = [ map { $_ eq "piix" ?  ($_, "ide-generic") : $_ } @{$result} ];
-	$result = [ map { $_ eq "amd74xx" ?  ($_, "ide-generic") : $_ } @{$result} ];
+	my $ideGenDrivers = [ "via82cxxx", "piix", "amd74xx" ];
+	my %modHash = map {$_ => 1} (@{$result});
 
+	for my $ideDriver (@{$ideGenDrivers}) {
+		if(exists($modHash{$ideDriver})) {
+			push(@{$result}, 'ide-generic');	
+			last;
+		}
+	}
 	return $result;
 }
 

Attachment: pgpIX0F9Ikq2G.pgp
Description: PGP signature

Reply via email to