Package: yaird
Version: 0.0.12-3
Severity: important

Hi,

I've tried using yaird with 2.6.16-rc2 kernel we are currently preparing for experimental and ran into a couple of problems. First, it would fail with an error:

Running depmod.
Finding valid ramdisk creators.
Using mkinitrd.yaird to build the ramdisk.
yaird error: bad value in /boot/config-2.6.16-rc2-686: 
CONFIG_PAGE_OFFSET=0xB0000000 (fatal)
mkinitrd.yaird failed to create initrd image.
Failed to create initrd image.

This happens due to a too tight regexp used to check for the allowed values of config options, attached patch takes care of that. More seriously, even the version with this patch applied still fails to build the initrd. The error message now is:

Running depmod.
Finding valid ramdisk creators.
Using mkinitrd.yaird to build the ramdisk.
yaird error: no link to block device in 
/sys/devices/pci0000:00/0000:00:1f.1/ide0/0.0 (fatal)
mkinitrd.yaird failed to create initrd image.
Failed to create initrd image.

The ls -la output from the directory mentioned in the error message looks like this:

total 0
drwxr-xr-x 3 root root    0 2006-02-08 14:45 .
drwxr-xr-x 4 root root    0 2006-02-08 14:35 ..
lrwxrwxrwx 1 root root    0 2006-02-08 14:45 block:hda -> 
../../../../../block/hda
lrwxrwxrwx 1 root root    0 2006-02-08 14:35 bus -> ../../../../../bus/ide
-r--r--r-- 1 root root 4096 2006-02-08 14:45 drivename
lrwxrwxrwx 1 root root    0 2006-02-08 14:35 driver -> 
../../../../../bus/ide/drivers/ide-disk
-r--r--r-- 1 root root 4096 2006-02-08 14:45 media
-r--r--r-- 1 root root 4096 2006-02-08 14:45 modalias
drwxr-xr-x 2 root root    0 2006-02-08 14:35 power
--w------- 1 root root    0 2006-02-08 14:35 uevent

So it looks like yaird is looking for a symbolic link called 'block', but in 2.6.16 it is actually called 'block:hda'. I hope it is not too hard to fix, because this bug will become RC as soon as 2.6.16 is released and is uploaded to unstable.

Thanks and best regards,

Jurij Smakov                                        [EMAIL PROTECTED]
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC
--- a/perl/KConfig.pm   2005-12-08 14:42:33.000000000 -0800
+++ b/perl/KConfig.pm   2006-02-08 14:38:52.000000000 -0800
@@ -65,7 +65,7 @@
                if ($value eq 'y'
                        || $value eq 'm'
                        || $value =~ /^-?\d+$/
-                       || $value =~ /^0x[0-9a-f]+$/
+                       || $value =~ /^0x[0-9a-fA-F]+$/
                        || $value =~ /^"[-a-zA-Z0-9@,.:_\/= ]*"$/
                ) {
                        $kConfMap->{$key} = $value;

Reply via email to