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

Bug#703747: netcfg: preseed netcfg: confusion or regression about disable_dhcp, disable_autoconfig and use_autoconfig



Le Sat, Mar 23, 2013 at 02:00:14AM +0100, bilibop project a écrit :
> 
> d-i netcfg/disable_autoconfig boolean true
> -> doesn't work
> 
> d-i netcfg/use_autoconfig boolean false
> -> doesn't work
> 
> d-i netcfg/disable_autoconfig boolean true
> d-i netcfg/use_autoconfig boolean false
> -> doesn't work
> 
> on boot cmdline: netcfg/disable_autoconfig=true netcfg/use_autoconfig=false
> -> doesn't work

Hello Quidame and everybody,

isn't there a bug in netcfg.c ?

    /* always always always default back to autoconfig, unless you've specified
     * disable_autoconfig on the command line. */
    debconf_get(client, "netcfg/disable_autoconfig");

    if (!strcmp(client->value, "true"))
        debconf_set(client, "netcfg/use_autoconfig", "false");
    else
        debconf_set(client, "netcfg/use_autoconfig", "true");

To me, it seems that in plain English the above means: if autoconfig is not
disabled then do not use autoconfig, which doees the contrary of what is
intended.

If this is the case, then this bug should be merged with #688273 before
closing.

Cheers,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


Reply to: