[BusyBox] Busybox init with devfs, shmfs, and pivot_root
Martin Volf
mv at inv.cz
Sun Jan 12 01:02:03 UTC 2003
On Sun, 12 Jan 2003 08:54:28 +1100
Glenn McGrath <bug1 at optushome.com.au> wrote:
> On Sat, 11 Jan 2003 21:30:39 +0100
> Martin Volf <mv at inv.cz> wrote:
>
> > I'm using following script, I don't know whether it is 100% correct,
> > it just works for me:
>
> Does that allow you to succesfully freeramdisk later ?
>
> What options do you pass to the kernel, are you running it as init or a
> real linuxrc ?
>
> Im confused about init=/linuxrc, AFAIK the kernel looks for /linuxrc and
> runs it automatically if it finds it. So with init=/linuxrc should
> linuxrc be running twice, once as a proper linuxrc and once as init.
About freeramdisk I know nothing, I don't use it. Also I don't use devfs. The script is /linuxrc (the name is not important) and in lilo.conf I have to have
append = "init=/linuxrc"
because the linux kernel looks only for init and sh, see linux/init/main.c:
if (execute_command)
execve(execute_command,argv_init,envp_init);
execve("/sbin/init",argv_init,envp_init);
execve("/etc/init",argv_init,envp_init);
execve("/bin/init",argv_init,envp_init);
execve("/bin/sh",argv_init,envp_init);
panic("No init found. Try passing init= option to kernel.");
The machine is x86.
--
Martin Volf
More information about the busybox
mailing list