LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mkinitrd isn't working when compilaing a new kernel (https://www.linuxquestions.org/questions/linux-general-1/mkinitrd-isnt-working-when-compilaing-a-new-kernel-144925/)

citrus 02-11-2004 02:16 PM

mkinitrd isn't working when compilaing a new kernel
 
i am try to compile 2.6.2 and when i get down to this part it allways screws up

bash-2.05b# mkinitrd /boot/initrd-2.6.2 2.6.2
/sbin/mkinitrd: line 290: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 290: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 290: /sbin/nash: No such file or directory
/sbin/mkinitrd: line 290: /sbin/nash: No such file or directory
no temporary directory could be found


i got a smilier error when i tried to compile it using makeinstall

whats goin on here?



thanks alot

citrus 02-11-2004 11:29 PM

any help???

rberry88 02-12-2004 12:52 AM

Why do you need an initrd?? Unless you have a specific need for it, it is not mandatory to have one with the newer kernels.

rberry88

citrus 02-12-2004 01:44 AM

well i get an error 1 when i do a make install soo......

rberry88 02-12-2004 07:35 AM

With the 2.6.x kernels, after you have gone into menuconfig and tweaked the kernel to your liking, you can simply do "make all" and it will do "make dep && make clean bzImage modules modules_install" for you so you just need to worry about copying over the bzImage and maybe the system.map files to your boot directory when its done. When you are ready to do "make dep" you can type "make help" and it will show you what is included when you do make all.

I find this easier but YMMV.

rberry88

glennardo 02-12-2004 12:22 PM

Quote:

Originally posted by citrus
any help???
Goto your 2.6.2 source tree, cd to init directory and execute the script.

Hope it helps !!

/bin/bash 02-12-2004 06:42 PM

True, initrd is not mandatory for any kernel, but whether or not you need initrd is not affected by how new the kernel is but rather how you configure the kernel, i.e. what you put into the kernel.

You don't have a distribution listed so I can only say that /sbin/nash is part of the mkinitrd rpm in Mandrake.


All times are GMT -5. The time now is 11:37 AM.