[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



Hi,

Le 2013-03-26 00:03, Samuel Thibault a écrit :
Control: tags 703747 + pending
Control: found 703747 1.101
Control: tags 688273 + pending

Hello,

It seems the issue is merely that:

    /* 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");

    /* also support disable_dhcp for compatibility */
    debconf_get(client, "netcfg/disable_dhcp");

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

netcfg/disable_autoconfig has no effect of course, since
netcfg/disable_dhcp gets over it in all cases.

Right. Now it's very clear.

I have dropped the else part here, so disable_dhcp only has effect if
set to the non-default "true".

Yes, that one gets the last word, whatever is before. That should now be fixed in the git tree, so disable_autoconfig will really be the right way. Until that gets uploaded you can use the disable_dhcp compatibility
debconf.

Nice.

use_autoconfig shouldn't have to be set to false. Both disable_dhcp (for
squeeze and earlier) and disable_autoconfig (for wheezy and later)
should be enough alone.

OK. Maybe this part of the documentation should be updated, to avoid confusing
other users ?
http://www.debian.org/releases/wheezy/example-preseed.txt
http://www.debian.org/releases/wheezy/${ARCH}/apbs04.html.en#preseed-network

I have uploaded a fixed version on:

http://dept-info.labri.fr/~thibault/tmp/mini.iso

Could you check that just netcfg/disable_autoconfig=true works for you
too?

The uploaded iso image is for amd64 computers; but I only own a i386 PC. So, I can't check it, sorry. But your explanations are very clear, thanks.

quidame


Reply to: