I would like to boot the Linux kernel alone and run busybox, not including a GUI.
How can I do that? How can I make a custom
initrd.img and how can I change the file structures in that images?
migrated from stackoverflow.com Jul 24 '11 at 9:25
This question came from our site for professional and enthusiast programmers.
Two things you need to do:
For the first part, you are best using the "genkernel" tool. You can probably achieve what you want by issuing
However, if you have never built a custom kernel, bear in mind that kernel configuration is not an easy task. You're best staying with as many defaults as you can.
After that step, you'll find your kernel image and initramfs under
Once you have that, you can go for building your custom bootable USB stick containing the files. To do that, I'd recommend following the Gentoo Linux documentation, replacing
This might help you: http://www.linuxfromscratch.org/ You can customize as per you want.