Bug#772523: preseeding get_domain using DHCP is broken
Dear developers,
I confirm that something broke between Bullseye and Bookworm (IIRC it
worked even with Bookworm RC2) regarding netcfg's behavior when the
host's IP address can't be found in the DNS.
I also think it's a different bug from the one originally reported
(which were for Jessie). Maybe a new one should be created for this big
regression in Bookworm.
The behavior also changes according to when the preseeding happens:
before netcfg (when installation is performed from an installation media
and the preseed file is specified with kernel parameter file=...) or
after netcfg (when installation is performed from a PXE server and the
preseed file is specified with kernel parameter url=...).
Note that when IP address (assigned by DHCP) is found in the DNS,
everything works as before, whether netcfg is performed before or after
the preseeding.
I performed a number of tests with a VM and the IP address missing from
the DNS, and the preseed file containing "d-i netcfg/get_hostname string
unassigned-hostname" and "d-i netcfg/get_domain string
unassigned-domain" (as suggested in [1]).
[1] https://www.debian.org/releases/bookworm/example-preseed.txt
With Bullseye, if the preseeding happens after netcfg (url=...), without
hostname or domain kernel parameters, d-i chooses "debian" as hostname
and sets no domain name. With a hostname set in kernel parameters, d-i
keeps it and sets the domain name from DHCP. With both hostname and
domain set in kernel parameters, d-i keeps the hostname, but still sets
the domain name from DHCP, ignoring the one provided in kernel parameters.
If the preseeding happens before netcfg (file=...), without hostname or
domain kernel parameters, d-i uses the ones from the preseed file
(unassigned-hostname and unassigned-domain). When hostname or hostname
and domain are specified in kernel parameters, it behaves as above
(hostname from kernel parameters and domain from DHCP).
This behavior is consistent with the aforementioned example preseed
file, and also with documentation in [2] (and particularly B.2.3, "Auto
mode").
[2] https://www.debian.org/releases/stable/i386/apbs02.en.html
With Bookworm, everything
--
Raph
Reply to: