On Fri, 19 Jan 2007, Marco d'Itri wrote:

> On Jan 19, Santiago Vila <[EMAIL PROTECTED]> wrote:
> > There is also a conflict of interest with debian-installer,
> > who created this file.
>
> *If* d-i really creates /etc/networks then we actually have a problem,

This is exactly what this bug is about. I installed my system three
days ago, on 2007-01-16, using the daily build netinst.iso and I
did not create /etc/networks myself. My IP is static if you want
to reproduce it (so I said no to DHCP etc).

> but I cannot find it on a newly-installed etch system.
> Can somebody authoritatively confirm or deny this?

See the "base-installer" script in the netcfg source package:

#!/bin/sh -e
# Copy all relevant networking-related files to /target.

for file in /etc/network/interfaces /etc/networks /etc/hostname 
/etc/resolv.conf /etc/hosts; do
        if [ -f "$file" ]; then
                mkdir /target/$(dirname $file) -p
                cp $file /target/$file
        fi
done

and also function netcfg_write_static() in static.c:

    if ((fp = file_open(NETWORKS_FILE, "w"))) {
        fprintf(fp, "localnet %s\n", inet_ntop (AF_INET, &network, ptr1, sizeof
(ptr1)));
        fclose(fp);
    } [...]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to