From: "Bdale Garbee" <bdale@gag.com>
Date: Mon, 26 Dec 2005 13:13:24 -0700
To: submit@bugs.debian.org
Subject: need to ignore /sys/devices/parisc
Message-Id: <20051226201324.AA9D57839E@winfree.gag.com>
Package: yaird
Version: 0.0.12-2
Severity: serious

This version of yaird fails on hppa because it doesn't know what to do with
the contents of /sys/devices/parisc:

Using mkinitrd.yaird to build the ramdisk.
yaird error: unrecognised device: /sys/devices/parisc
yaird error: unrecognised device: /sys/devices/parisc/10
yaird error: unrecognised device: /sys/devices/parisc/10/10:0
yaird error: there were errors in this run, aborting now without output (fatal)
Failed to create initrd image.

As far as I can tell, we don't need any modules in the initrd for anything
under that tree.  I patched /usr/lib/yaird/perl/Hardware.pm as shown below and
got an initrd that booted just fine.  

Please apply this ASAP since it keeps hppa 2.6.14 and later kernels from being 
installable.

Bdale

diff -ruN yaird/perl/Hardware.pm.old yaird.perl/Hardware.pm
--- yaird/perl/Hardware.pm.old	2005-12-26 13:05:24.000000000 -0700
+++ yaird/perl/Hardware.pm	2005-12-26 13:06:08.000000000 -0700
@@ -170,6 +170,9 @@
 		elsif ($abspath =~ m!/platform$!) {
 			# the platform (pseudo) bus itself does not need any modules.
 		}
+		elsif ($abspath =~ m!/parisc!) {
+			# no modules needed for things in parisc subtree
+		}
 		elsif ($abspath =~ m!/i8042$!) {
 			# Controller for the serio bus for AT mouse and keyboard.
 			$modules = [ "i8042" ];


