Subject: Re: network config only written to target disk when using DHCP?
To: None <jchacon@genuity.net>
From: None <jchacon@genuity.net>
List: tech-install
Date: 12/18/2000 02:26:25
Nope, everything looks good. 

resolv.conf
ifconfig.ed0
myname
mygate

all got created and work appropriately.

James

>
>Hmm...I'll look into this.
>
>I just checked in patches which at least fix the case where you answer
>the question before and *had* DHCP only to not have it configure it for you.
>
>I haven't done an install without dhcp in so long otherwise, but that's what
>test machines are for.
>
>James
>
>>
>>
>>from src/distrib/utils/sysinst/net.c:
>>
>>        /* If not running in target, copy resolv.conf there. */
>>        if ((net_dhcpconf & DHCPCONF_NAMESVR) == 0) {
>>                if (strcmp(net_namesvr, "") != 0)
>>                        dup_file_into_target("/etc/resolv.conf");
>>        }
>>
>>it seems net_dhcpconf is only set when the config is actually read in from
>>DHCP, not when enterred manually. As a result, if someone sets up a system
>>that's not configured via DHCP but manually, answering the question
>>
>>  ``Is the network information you entered accurate for this machine
>>  in regular operation and do you want it installed in /etc?''
>>
>>results in no effect as a result.
>>
>>
>> - Hubert
>>
>>-- 
>>Hubert Feyrer <hubert@feyrer.de>
>>
>>
>>
>>
>>
>
>
>
>
>