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

Bug#1035349: marked as done (regression: 'hostname' preseed alias for netcfg/get_hostname takes precedence over DHCP hostname)



Your message dated Wed, 03 May 2023 06:21:24 +0000
with message-id <E1pu5rg-0042J9-8W@fasolo.debian.org>
and subject line Bug#1035349: fixed in preseed 1.116
has caused the Debian Bug report #1035349,
regarding regression: 'hostname' preseed alias for netcfg/get_hostname takes precedence over DHCP hostname
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1035349: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1035349
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: preseed
Version: 1.115
Severity: important
Tags: d-i

Dear Maintainer,

This bugreport is a subset/related-to bug #1031643, also in preseed.

When the 'hostname' preseed alias for 'netcfg/get_hostname' is provided to
Bookworm's RC 2 installer as a kernel command-line argument, the value that
it contains unexpectedly takes higher precedence over a hostname received from
DHCP, contrary to the Installation Guide documentation[1] in combination with
the corresponding netcfg documentation[2].


Conditions:

  * Preseed alias 'hostname' configured on the kernel command-line
  * There is a DHCP server on the installation-target's network that will provide a hostname

Expected behaviour:

  * Installer does not ask for installation-target hostname
  * Installation-target hostname is received and configured using DHCP

Actual behaviour:

  * [good] Installer does not ask for hostname
  * [bad] Hostname is configured from the command-line, ignoring the DHCP-negotiated hostname.
  * This is similar to 'netcfg/hostname' -- a different setting from 'netcfg/get_hostname'.



Context:

Since Linux 6.0, a 'hostname=...' parameter provided in the kernel command-line
is no-longer loaded into the init process environment as a variable, but is
instead used to set the hostname of the running system (skipping the
need for userspace tooling to achieve that).

That caused a conflict for the preseed aliases in the Debian Installer, because
one of the aliases is also 'hostname', mapped to 'netcfg/get_hostname'.

The fix applied in #1031643 loads the 'running system hostname' into the
environment if it is non-empty and not equal to '(none)'.  This allows
unattended installs to work again.

The 'netcfg' component that determines the system hostname (prompting for it
from the operator if required) to be installed will prefer a non-empty hostname
(as long as it is not the literal string '(none)') over one provided by DHCP
in this block of code: https://sources.debian.org/src/netcfg/1.185/dhcp.c/#L578

Thanks,
James

[1] - https://www.debian.org/releases/stable/amd64/apbs02.en.html#preseed-aliases

[2] - https://sources.debian.org/src/netcfg/1.185/debian/netcfg-common.templates/?hl=145#L160

--- End Message ---
--- Begin Message ---
Source: preseed
Source-Version: 1.116
Done: Cyril Brulebois <kibi@debian.org>

We believe that the bug you reported is fixed in the latest version of
preseed, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1035349@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (supplier of updated preseed package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 03 May 2023 07:20:10 +0200
Source: preseed
Architecture: source
Version: 1.116
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Closes: 1035349
Changes:
 preseed (1.116) unstable; urgency=medium
 .
   [ Cyril Brulebois ]
   * env2debconf: if hostname is set, keep propagating it (see previous
     changelog entry) but also reset it to the default “(none)” value so
     that netcfg considers DHCP-provided hostnames. This restores the
     longstanding semantics, i.e. defining a fallback instead of taking
     priority (Closes: #1035349).
 .
   [ Updated translations ]
   * Georgian (ka.po) by Temuri Doghonadze
Checksums-Sha1:
 49190e79a72317842a8b14a0088eafb5786c071f 1887 preseed_1.116.dsc
 9893af560aa77b94909c5bcd8db897b2ba9fa25a 87748 preseed_1.116.tar.xz
 c5034dd78c29974d5b82f19f5dc8b6dca8fa59ba 6407 preseed_1.116_source.buildinfo
Checksums-Sha256:
 bc9ff0a75e1a7f5d956b08c14410a77986f776b526a122e7fd98365fd974e370 1887 preseed_1.116.dsc
 933e924b3d43ff58592c7009ddf92cf9656150009ba1f3fd747db0e48f0f3326 87748 preseed_1.116.tar.xz
 8a741e6a764e3c99270086459be208d734c682d0c13f68c06f79d59eddfbb75c 6407 preseed_1.116_source.buildinfo
Files:
 4700c408a59f638f11bba7080ad2bae8 1887 debian-installer optional preseed_1.116.dsc
 2d3329e7e1c9bec3fec1c5c01fdb8a15 87748 debian-installer optional preseed_1.116.tar.xz
 e62b7264431f1ece934e35fa03da3d5c 6407 debian-installer optional preseed_1.116_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmRR738QHGtpYmlAZGVi
aWFuLm9yZwAKCRD/kUrwwrNVIC9QEADBJk6oPcg6JMwpJGZnMJBgcq2ALf+R4Pab
x24sZmDrSOuOcdL3Jm0bIDvXr0IG7JK2aPhbFhhSsUypPhHsaJ8bGqGTeETpldRq
ag0Ohr4nnx5yoVtM6Qh34aDdXL3NqUxyv9Hy4YWzUbzzxaSRYSYcl96OFdfAVREP
gOWb2TJhE7pa3wRYF7oILqM5EwGrMrYW2aSlSbAIKD9iJmE8D4etyKNxiXfksIGD
m0jpMBKLpAxVb0TNOwW1z6KNtBm+t0seMM9AZrPxBbP13mh4T5v09dRvmj/WE/rP
jkAFP3VjRIc5CDbV/7pMiIe78+7aJNl+VTNZMUUUXFBnKjK/X8O5GOzwfaTS8JiY
Ojb7CPLD/nW4iRKmXgEJQ8fF8gf7MyWHz4kNdGvUlmngPuuoY4/wp44b2aQCJbWP
4whu0J/zlNC2rpbHjMDNbed3bGcm+2O2hgIx99WhdsXAaWlM4cmEmhIioFW6/lLr
Y6Hp9JXHiP5nS4cQ77lFq6/5jZKi2m/RCNf4vRqrMBzBue4XAC/QydK1d9fioJdl
Xiy1aElh0E3f1+lkVJGgPsige2E2MeG7hGE+yDVCUwTE32fx+bVqHm4OISE+Dp9+
adjHIQTXeBzfu9JDOiNEA0N6DDHMglMl6RjdUwupr6ursqre+OKvuMZ8GwB19ziq
Rg5YIV7EsA==
=dWy/
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: