Monday, March 22, 2010

Issue with mkinitrd when compilin 2.6.32 kernel in Fedora





I installed Fedora 12 on my System recently, downloaded the latest kernel 2.6.32. Compiled the kernel in the standard procedure. On the last step, after make modules_install make install - ends up in following an error message:
sh /usr/src/linux-2.6.32.8/arch/x86/boot/install.sh 2.6.32.8 arch/x86/boot/bzImage System.map "\boot" /sbin/new-kernel-pkg: line 277: /sbin/mkinitrd: No such file or directory mkinitrd failed

Googled a lot and finally got the solution by anonymous here.
here is the solution for all those ppl who got struck in a similar situation.
Open /sbin/new-kernel-pkg in vim and go to line 277. Right before      
"[ -n "$verbose" ] ..." add
tool="/sbin/dracut -f $initrdfile $version" (this line is just copy and pasted from a few lines up)
 100rabh: )

See ya there at ./a.in