Control: tags -1 + pending Hi,
Vincent McIntyre <[email protected]> wrote (Tue, 27 Sep 2016 10:38:03 +1000): > For some years the disable_autoconfig preseed has been shown > in the appendix on preseeding. However setting that just sets > use_autoconfig appropriately. Yet use_autoconfig is not even > mentioned in the appendix, ever. > > There might be something I'm missing here, such as disable_autoconfig > is the only thing that works if you pass it on the boot command line. > I might also be misinterpreting 'manual configuration' as meaning > 'set up an "iface ethX inet static" stanza in /etc/network/interfaces'. > > If not, is it time to start deprecating use of disable_auotconfig? > I realise it was needed in the past but the code has been fixed. > > --- preseed.xml (revision 70296) > +++ preseed.xml (working copy) > @@ -882,6 +882,10 @@ > > # If you prefer to configure the network manually, uncomment this line and > # the static network configuration below. > +#d-i netcfg/use_autoconfig boolean false > + > +# The following also forces manual configuration, but is deprecated > +# for end user preseed files. It will set use_autoconfig to false. > #d-i netcfg/disable_autoconfig boolean true Setting "d-i netcfg/use_autoconfig boolean false" in the script without having "d-i netcfg/disable_autoconfig boolean true" at the same time has no effect. (use_autoconfig is set back to true in that case.) This is the expected behavior apparently. So, setting "d-i netcfg/disable_autoconfig boolean true" is the only possible way, to disable DHCP completely, and we cannot deprecate it. And having "d-i netcfg/use_autoconfig boolean true" in the script is not necessary, because it defaults to true anyway. So there is nothing wrong in the manual. (I have added a line to preseed.xml, that automatic network config is the default BTW.) Holger -- Holger Wansing <[email protected]> PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076

