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

Bug#563819: installation-guide: Please add netcfg/dhcp_use to preseed example



Hello,
On 06/01/10 20:33, Frans Pop wrote:
On Tuesday 05 January 2010, Javier Barroso wrote:
If you want don't be asked in network config about manual / dhcp
configuration, you need netcfg/dhcp_use to true, but it doesn't appear
in the example.
It is not documented because preseeding is normally done while running with
debconf priority critical, or maybe high. But this question only gets
asked at medium priority so there is normally no need to preseed it.

There are many, many more questions that only get asked at medium or low
priority that are also not documented.

The correct template to preseed to choose between dhcp and static network
configuration is netcfg/disable_dhcp.
Including in preseed.cfg:

d-i netcfg/disable_dhcp string false

won't stop debian-installer asking about Auto-configure Network with DHCP question.

but netcfg/use_dhcp does the trick.

Do I have to combine disable_dhcp with another option ?

My environment (grep netcfg preseed.cfg) is:
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string pxe
d-i netcfg/get_domain string red.isotrol.com
# d-i netcfg/use_dhcp string true
d-i netcfg/disable_dhcp string false
d-i netcfg/dhcp_options select Retry network autoconfiguration


I think this patch could be fine.
Well, to be honest the patch is quite sloppy:
- it is reversed
- the name of the template is incorrect (correct name is use_dhcp)
Sorry for wasting your time, you are right. I was only trying to help, but seems like I had not good day :)
I'm closing this report as IMO there is no reason to document this
template. You are of course free to reply if you disagree, but you'll need
to explain in a lot more detail in which situation it would be needed.
I don't known if use_dhcp should have a higher priority/lower priority, but I think that how to skip this question should be documented.

Thanks



Reply to: