Your message dated Fri, 26 Oct 2012 09:18:23 +0000 with message-id <[email protected]> and subject line Bug#606636: fixed in netcfg 1.99 has caused the Debian Bug report #606636, regarding dhcp returned hostname take precedence on netcfg/get_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 [email protected] immediately.) -- 606636: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606636 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: netcfg Version: 1.51 If the parameter netcfg/get_hostname is set in syslinux or in the preseed it could be ignore if the DHCP request return a hostname value. This is a very surprising behavior for me, the netcfg package should respect the user input rather than the relic of the previous machine hostname in the DHCP. If this behavior wanted, could we introduce a parameter like netcfg/use_hostname ? I made a pacth on the 1.47 but that could apply on 1.51. Thanks, Thomas Sondag diff -Nru ./dhcp.c ../netcfg-1.47ep1/dhcp.c --- ./dhcp.c 2008-09-16 10:57:59.000000000 +0000 +++ ../netcfg-1.47ep1/dhcp.c 2009-05-05 14:20:56.000000000 +0000 @@ -304,6 +304,8 @@ int netcfg_activate_dhcp (struct debconfclient *client) { char* dhostname = NULL; + netcfg_get_hostname (client, "netcfg/get_hostname", &dhostname, 0); + enum { START, POLL, ASK_OPTIONS, DHCP_HOSTNAME, HOSTNAME, DOMAIN, HOSTNAME_SANS_NETWORK } state = START; kill_dhcp_client(); @@ -388,21 +390,21 @@ } /* - * Default to the hostname returned via DHCP, if any, - * otherwise to the requested DHCP hostname - * otherwise to the hostname found in DNS for the IP address + * Default to the the requested DHCP hostname, if any, + * otherwise to the hostname returned via DHCP + * otherwise to the hostname found in DNS for the IP address * of the interface */ - if (gethostname(buf, sizeof(buf)) == 0 + if (dhostname) { + debconf_set(client, "netcfg/get_hostname", dhostname); + }
--- End Message ---
--- Begin Message ---Source: netcfg Source-Version: 1.99 We believe that the bug you reported is fixed in the latest version of netcfg, 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Philipp Kern <[email protected]> (supplier of updated netcfg 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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Fri, 26 Oct 2012 11:11:53 +0200 Source: netcfg Binary: netcfg netcfg-static Architecture: source amd64 Version: 1.99 Distribution: unstable Urgency: low Maintainer: Debian Install System Team <[email protected]> Changed-By: Philipp Kern <[email protected]> Description: netcfg - Configure the network (udeb) netcfg-static - Configure a static network (udeb) Closes: 606636 690330 Changes: netcfg (1.99) unstable; urgency=low . [ Philipp Kern ] * netcfg.c (main): Remove a local definition of hostname. (Closes: #690330) * Override the hostname found via DHCP or DNS with the preseeded value of the new variable netcfg/hostname, if set. Patch by Floris Bos. (Closes: #606636) * Add myself to uploaders. . [ Updated translations ] * Amharic (am.po) by Tegegne Tefera * Asturian (ast.po) by Mikel González * Welsh (cy.po) by Dafydd Tomos * Esperanto (eo.po) by Felipe Castro * Spanish (es.po) by Javier Fernández-Sanguino * Galician (gl.po) by Jorge Barreiro * Kannada (kn.po) by Prabodh * Serbian (sr.po) by Karolina Kalic * Tamil (ta.po) by Dr.T.Vasudevan * Ukrainian (uk.po) by Yuri Chornoivan Checksums-Sha1: 55a47b7cd65096717206b9b39426bb7bc7783350 1518 netcfg_1.99.dsc 98d4e679c9b3480202ee1c127eda776e60e5eab3 748696 netcfg_1.99.tar.gz dca3eb05661026b41de4ef43f2e59bf053a64312 419386 netcfg_1.99_amd64.udeb b6881915852d035e4f58e66d175b72b958d96e85 329518 netcfg-static_1.99_amd64.udeb Checksums-Sha256: ae993da0a66add191dd2f9157fd8b63c2da89b7217b93d65357d304951d75789 1518 netcfg_1.99.dsc e0fdf2fb607ae7b2f7088fef0f25906aa709be01fd264af737e044f24ec14f56 748696 netcfg_1.99.tar.gz d9104607381ee49356dd5e66a9b69abcabd789b3de4c509063f0e426f0788178 419386 netcfg_1.99_amd64.udeb f2b12a51a0074a157686389ea754cb0afc613b77db55943de7ecfe03d0f17cdc 329518 netcfg-static_1.99_amd64.udeb Files: 29a58a7b9975d0dd1d2758cae1b019ee 1518 debian-installer optional netcfg_1.99.dsc 4d42fc6ce25d2d63699ba07c6c6e8e5e 748696 debian-installer optional netcfg_1.99.tar.gz 357b9cd2ab2bb8a0a4212005bc1b5086 419386 debian-installer optional netcfg_1.99_amd64.udeb 0ea55ac1779f938d04b13fc252638841 329518 debian-installer optional netcfg-static_1.99_amd64.udeb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBCAAGBQJQilP5AAoJEERuJUU10FbsqccH/jasqQWvkAk8OvDScbhtLyB0 da+97levmxSP1qy5H6sIpmDDD5KOpamK/GjY38UeM8/o++fa1EoxPwHc+WG3CMiy hkX7urMRUP9YrwIq5loFcuWpy2Dv2ozldGMgn99dxZleivEjhUDrTLvr6kIl5PqZ sBxfyiQXSpOJTdPMLdET6ji+muLRCtNz5FT8ECtGgW2BJRFT1eCIIQZOtU6N6+g8 ktpdGSaEDiIK+IC3pmnv9D+Qw4MOxljvBEeRheh6nQv6EZdsEzAELj3mr3Jm9VhG RmuU7BxSpFQYLk/iq6YMGZNiRaXKSR6z+iiwJ4yUilUP1zTqFGAA1H62mLc2GM0= =3yDy -----END PGP SIGNATURE-----
--- End Message ---

