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

Bug#983835: base-installer: hostname= is ignored if reverse-dns exists



On 3/2/2021 6:15 PM, Phil Dibowitz wrote:
On 3/2/21 1:58 AM, Holger Wansing wrote:
Am 2. März 2021 09:52:06 MEZ schrieb Cyril Brulebois <kibi@debian.org>:
The preseed doc[2] suggests the former is behind the (bare) hostname
alias. Try setting the latter?

Yes, the installation-guide under
https://www.debian.org/releases/bullseye/amd64/apbs04.en.html
even explicitly states this, indeed:

# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is,
uncomment # and adjust the following line. #d-i netcfg/hostname string
somehost

Thanks for pointing that out! Don't know how I missed that.

However, that requires a per-host preseed, where as with kernel command
line I can have the same preseed for all my hosts (or at least all hosts
in a certain category) and simply just pass in a hostname in the
tftpseed (which has to be host specific anyway and for me is already
generated by my provisioning system).

So perhaps it would be useful to have a like netcfg/hostname_priority
flag where one can choose a priority order?


+1

--
John Doe


Reply to: