[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: d-i: almost success



On Wed Feb 14, 2001 at 05:48:10PM -0800, Joey Hess wrote:
> Maybe David has quietly managed this earlier, but it's a first for me:
> 
> * made a d-i boot floppy
> * booted up my old 486 with it
> * told it I had a ne2000 ethernet card[1], and manually specified the io
>   base 0x300 and irq 10 since it's not a pnp card[2]
> * manually configured the network
> * went over to vc 2 and failed to ping debian.org
> * echoed "nameserver 198.144.200.155" to resolv.conf since for some
>   reason netcfg-manual had only put a "search" line in there. David?
> * went over to vc 2 and failed to ping debian.org
> * successfully pinged out by IP
> * told it to use the ip address of http.us.debian.org, and manually
>   configured it for that mirror
> * watched anna segfault instead of downloading anything :-(
> 
> So we're missing dns lookup stuff. Some of the necessary peices are:
> 
> - /etc/nsswitch.conf (should be unnecessary according to the libc info
>   page)

If you look in the stock nsswitch.conf you will see
    hosts:          files dns
    networks:       files

It will use /lib/libnss_files* to read things like /etc/hosts
(I'm not sure which nss lib glibc uses to read resolv.conf)

You will also want a minimalist /etc/protocols, since there is a good chance
that somebody will do a getprotobyname() and choke...  Other apps may be doing
things like getservbyname, which requires /etc/services (which can be majorly
trimmed btw).  Probably worth a look.   I find dropping a copy of strace onto a
work-in-progress embedded system very insightful.  strace apps that are
misbehaving and you can usually see where it chokes...

> 
> I threw those onto the floppy, but I still can't get the dns to work. Help!
> 
> The floppy image is 
> http://people.debian.org/~joeyh/debian-installer/net-1440.img 
> 
> I'm going to take a closer look at the anna segfault. It's easy to
> reproduce, and it's probably due to it not being robust enough in its
> dependancy calculations, or something silly like that.

Probably just a library thing -- strace can probably find it.  If you find
things end up being too tight on space, I can probably brew up a library
for doing dns which will bypasses all the glibc nss junk...

 -Erik

--
Erik B. Andersen   email:  andersee@debian.org, andersen@lineo.com
--This message was written using 73% post-consumer electrons--



Reply to: