Help: DNS Resolver and Root Shell

Hui Li openlinuxsource at gmail.com
Mon Oct 21 14:42:52 UTC 2013


On Sun, 2013-10-20 at 22:45 +0200, Denys Vlasenko wrote:
> On Sunday 20 October 2013 18:31, Hui Li wrote:
> > Hi,
> > 
> > I'm new to busybox and encountered 2 issues currently during building up
> > small rootfs.
> > 
> > 1). DNS resolver is not valid.
> 
> Can you elaborate?
> 
When I do ping www.google.com I will get 'bad address www.google.com'
>  
> > 2). Root shell does start from /root. After I created the rootfs and
> > booting to login prompt
> 
> 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
> 
> Or maybe you have the system configured to run getty or login,
> then you type username and password and get shell prompt?
> 
> Or some other way?
> 
> Shell by itself does not change to any directory when it starts.
> It remains in whatever directory is current for its parent process.
> 
Thanks.
-------------- next part --------------
::sysinit:/etc/rc
::askfirst:-/bin/sh
::restart:/sbin/init
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc
Type: application/x-shellscript
Size: 379 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20131021/32ac39e8/attachment.bin>


More information about the busybox mailing list