Error while using mkinitrd of the initrd-tools (0.1.82) package
Hi
Following the change in the 'module_exists()' in the
latest version of mkinitrd, I encounter the following
error when I use mkinitrd to build an initrd.
find: /lib/modules/2.6.13-rc5/kernel/drivers/ide: No such
file or directory
My kernel has ide built in the kernel. The problem, I
suspect, lies in the print_ide_modules() call which assigns
none to $IDE_CORE and further calls print_module with
'drivers/ide/ide-disk'. The module_exists() then complains
as it does not find any /lib/modules/2.6.13-rc5/kernel/drivers/ide
directory.
Could probably have a check to see whether the required directory
exists before calling print_module() as follows:
--- mkinitrd.orig 2005-08-24 13:35:57.000000000 +0530
+++ mkinitrd 2005-08-24 13:39:58.000000000 +0530
@@ -469,7 +469,9 @@ print_ide_modules() {
;;
*)
IDE_CORE=none
- print_module drivers/ide/ide-disk
+ if [ -d $MODULEDIR/kernel/drivers/ide ]; then
+ print_module drivers/ide/ide-disk
+ fi
return
;;
esac
Thanks
Rachita.
Reply to: