Sunday 18 December 2011

Linux with init replaced with bash

Linux with init replaced with bash

I was bored so I decided to read LFS, but after reading a little I decided I want to start at something simpler. I just wanted to get a command line with minimal work.

I've compiled the kernel and created an initial ram disk and copied them to the root directory of another drive. I also copied bash from /bin/bash to the root directory. However when I boot with grub using:

insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
linux /vmlinux init=/bash
initrd /initrd.img

It just falls back to grub without any errors.
Any help?

No comments:

Post a Comment