Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to bring up my custom kernel. I did the following :

$ make menuconfig && make modules && make modules_install && make install

I would like to change the install PATH. How can i do that?

I tried doing

$ export INSTALL_PATH=<my custom path>

But then it is only creating vmlinux.bin (it is not creating the ramdisk image!)

But if I don't do that, make install will automatically create the ramdisk image in the default /boot folder.

How can i change that?

share|improve this question
up vote 1 down vote accepted

Yup, I found where is that install path.

It is inside /sbin. The script file name is installkernel.

Just need to make a couple of changes in there and i could change the default install path of my Linux source(which was /boot).

share|improve this answer
And you can use "make install INSTALLKERNEL=XXX" to use a custom script as mentioned under Documentation/kbuild. – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Aug 8 '15 at 18:25

You use a separate tool to create an initrd image.
Most distros use a command called mkinitrd, but Fedora has a tool called dracut that is supposed to replace mkinitrd.

share|improve this answer
but i would like to know from where is it getting the install path? – Sen Jan 5 '11 at 14:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.