Re: Help: DNS Resolver and Root Shell

2013-10-27 Thread Hui Li
On Wed, 2013-10-23 at 17:51 +0200, Denys Vlasenko wrote: execve(/bin/ping, [ping, www.google.com], [/* 9 vars */]) = 0 ... ... open(/lib/libnss_files.so.2, O_RDONLY|O_CLOEXEC) = 3^M read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\31\0\0004\0\0\0\263\0\0\2\0\0\0054\0

Re: Help: DNS Resolver and Root Shell

2013-10-27 Thread Tito
On Sunday 27 October 2013 16:46:44 you wrote: On Wed, 2013-10-23 at 17:51 +0200, Denys Vlasenko wrote: execve(/bin/ping, [ping, www.google.com], [/* 9 vars */]) = 0 ... ... open(/lib/libnss_files.so.2, O_RDONLY|O_CLOEXEC) = 3^M read(3,

Re: Help: DNS Resolver and Root Shell

2013-10-27 Thread Denys Vlasenko
On Sun, Oct 27, 2013 at 4:46 PM, Hui Li openlinuxsou...@gmail.com wrote: open(/lib/libnss_files.so.2, O_RDONLY|O_CLOEXEC) = 3^M read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\31\0\0004\0\0\0\263\0\0\2\0\0\0054\0 \0\10\0(\0\36\0\33\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\

Re: Help: DNS Resolver and Root Shell

2013-10-27 Thread Lee Eric
Hi, I have fixed this issue by replacing correct libs. Thanks all. Hui On Sun, Oct 27, 2013 at 9:14 PM, Denys Vlasenko vda.li...@googlemail.com wrote: On Sun, Oct 27, 2013 at 4:46 PM, Hui Li openlinuxsou...@gmail.com wrote: open(/lib/libnss_files.so.2, O_RDONLY|O_CLOEXEC) = 3^M read(3,

Re: Help: DNS Resolver and Root Shell

2013-10-23 Thread Hui Li
On Tue, 2013-10-22 at 22:41 +0200, Denys Vlasenko wrote: On Tue, Oct 22, 2013 at 5:43 PM, Hui Li openlinuxsou...@gmail.com wrote: Yes. 127.0.0.1 localhost And I will get following error by hostname: root@localhost:~# hostname -f hostname: localhost: Resolver internal error Hmm,

Re: Help: DNS Resolver and Root Shell

2013-10-23 Thread Denys Vlasenko
execve(/bin/ping, [ping, www.google.com], [/* 9 vars */]) = 0 ... ... open(/lib/libnss_files.so.2, O_RDONLY|O_CLOEXEC) = 3^M read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\220\31\0\0004\0\0\0\263\0\0\2\0\0\0054\0 \0\10\0(\0\36\0\33\0\6\0\0\0004\0\0\0004\0\0\0004\0\0\0\0\1\ close(3) This

Re: Help: DNS Resolver and Root Shell

2013-10-22 Thread Hui Li
On Mon, 2013-10-21 at 19:52 +0200, Denys Vlasenko wrote: On Mon, Oct 21, 2013 at 5:15 PM, Hui Li openlinuxsou...@gmail.com wrote: I created /etc/nsswitch.conf but seems still failed. Please post your /etc/nsswitch.conf, /etc/hosts and /etc/resolv.conf /etc/nsswitch.conf: passwd: files

Re: Help: DNS Resolver and Root Shell

2013-10-22 Thread Denys Vlasenko
On Tue, Oct 22, 2013 at 3:55 PM, Hui Li openlinuxsou...@gmail.com wrote: On Mon, 2013-10-21 at 19:52 +0200, Denys Vlasenko wrote: On Mon, Oct 21, 2013 at 5:15 PM, Hui Li openlinuxsou...@gmail.com wrote: I created /etc/nsswitch.conf but seems still failed. Please post your /etc/nsswitch.conf,

Re: Help: DNS Resolver and Root Shell

2013-10-22 Thread Denys Vlasenko
On Tue, Oct 22, 2013 at 3:55 PM, Hui Li openlinuxsou...@gmail.com wrote: And could you pls. tell me how to fix root shell issue? Replace ::askfirst:-/bin/sh with ::askfirst:/bin/getty 38400 tty999 (replace tty999 with the tty device you want to login on).

Re: Help: DNS Resolver and Root Shell

2013-10-22 Thread Hui Li
On Tue, 2013-10-22 at 17:31 +0200, Denys Vlasenko wrote: On Tue, Oct 22, 2013 at 3:55 PM, Hui Li openlinuxsou...@gmail.com wrote: On Mon, 2013-10-21 at 19:52 +0200, Denys Vlasenko wrote: On Mon, Oct 21, 2013 at 5:15 PM, Hui Li openlinuxsou...@gmail.com wrote: I created /etc/nsswitch.conf

Re: Help: DNS Resolver and Root Shell

2013-10-22 Thread Denys Vlasenko
On Tue, Oct 22, 2013 at 5:43 PM, Hui Li openlinuxsou...@gmail.com wrote: Yes. 127.0.0.1 localhost And I will get following error by hostname: root@localhost:~# hostname -f hostname: localhost: Resolver internal error Hmm, I don't know what Run it under strace -s99, post the log.

Re: Help: DNS Resolver and Root Shell

2013-10-21 Thread Hui Li
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

Re: Help: DNS Resolver and Root Shell

2013-10-21 Thread Hui Li
On Sun, 2013-10-20 at 22:04 +0200, Tito wrote: On Sunday 20 October 2013 18:31:26 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. I googled some and it seems I need to copy

Re: Help: DNS Resolver and Root Shell

2013-10-21 Thread Hui Li
I created /etc/nsswitch.conf but seems still failed. root@localhost:~# ping localhost ping: bad address 'localhost' root@localhost:~# hostname -f hostname: localhost: Resolver internal error Thanks. On Mon, 2013-10-21 at 22:45 +0800, Hui Li wrote: On Sun, 2013-10-20 at 22:04 +0200, Tito wrote:

Re: Help: DNS Resolver and Root Shell

2013-10-21 Thread Denys Vlasenko
On Mon, Oct 21, 2013 at 4:42 PM, Hui Li openlinuxsou...@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:

Re: Help: DNS Resolver and Root Shell

2013-10-21 Thread Denys Vlasenko
On Mon, Oct 21, 2013 at 5:15 PM, Hui Li openlinuxsou...@gmail.com wrote: I created /etc/nsswitch.conf but seems still failed. Please post your /etc/nsswitch.conf, /etc/hosts and /etc/resolv.conf ___ busybox mailing list busybox@busybox.net

Help: DNS Resolver and Root Shell

2013-10-20 Thread Hui Li
Hi, I'm new to busybox and encountered 2 issues currently during building up small rootfs. 1). DNS resolver is not valid. I googled some and it seems I need to copy libnss_files/libnss_dns/libresolv libs to proper directory(/lib), however it's still failed. The busybox is compiled in shared

Re: Help: DNS Resolver and Root Shell

2013-10-20 Thread Tito
On Sunday 20 October 2013 18:31:26 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. I googled some and it seems I need to copy libnss_files/libnss_dns/libresolv libs to proper directory(/lib), however

Re: Help: DNS Resolver and Root Shell

2013-10-20 Thread Denys Vlasenko
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? 2). Root shell does start from /root. After I created the rootfs and booting to login prompt