Help: DNS Resolver and Root Shell
Denys Vlasenko
vda.linux at googlemail.com
Mon Oct 21 17:51:12 UTC 2013
On Mon, Oct 21, 2013 at 4:42 PM, Hui Li <openlinuxsource at gmail.com> wrote:
>> How exactly do you "boot to login prompt"?
> When system boots to login prompt the current dir is '/'.
>>
>> Do you boot with init=/bin/sh?
> The attachment is /etc/rc and /etc/inittab
Your inittab has this line:
::askfirst:-/bin/sh
>> Shell by itself does not change to any directory when it starts.
>> It remains in whatever directory is current for its parent process.
The parent process (init) has / as its current directory.
Therefore the shell started by that line will be in / too.
--
vda
More information about the busybox
mailing list