Debian Bug report logs - #755848
preseed d-i netcfg/hostname does not set hostname

version graph

Package: netcfg; Maintainer for netcfg is Debian Install System Team <debian-boot@lists.debian.org>;

Reported by: "Andre \"Osku\" Schmidt" <andre.osku.schmidt@gmail.com>

Date: Wed, 23 Jul 2014 21:15:01 UTC

Severity: normal

Found in versions netcfg/1.108, netcfg/1.131

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Wed, 23 Jul 2014 21:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Andre \"Osku\" Schmidt" <andre.osku.schmidt@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 23 Jul 2014 21:15:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Andre \"Osku\" Schmidt" <andre.osku.schmidt@gmail.com>
To: submit@bugs.debian.org
Subject: preseed d-i netcfg/hostname does not set hostname
Date: Wed, 23 Jul 2014 23:12:02 +0200
Package: netcfg
Version: 1.108

using "d-i netcfg/hostname string foobar" in preseed file still makes
the installer to ask user for hostname. or when using kernel option
priority=critcal hostname is silently set to "noname".

info from:
https://www.debian.org/releases/wheezy/example-preseed.txt

using debian wheezy 7.6.0 netinst:
http://cdimage.debian.org/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-netinst.iso

adding to default boot opionts:
auto=true url=http://my.domain/my.preseed.file



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Thu, 24 Jul 2014 10:00:28 GMT) (full text, mbox, link).


Acknowledgement sent to Anthony F McInerney <afm404@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Thu, 24 Jul 2014 10:00:28 GMT) (full text, mbox, link).


Message #10 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Anthony F McInerney <afm404@gmail.com>
To: Andre Osku Schmidt <andre.osku.schmidt@gmail.com>, 755848@bugs.debian.org
Subject: Re: Bug#755848: preseed d-i netcfg/hostname does not set hostname
Date: Thu, 24 Jul 2014 10:58:30 +0100
[Message part 1 (text/plain, inline)]
d-i preseed/early_command string kill-all-dhcp; netcfg

when using priority=critical
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Fri, 25 Jul 2014 10:33:05 GMT) (full text, mbox, link).


Acknowledgement sent to Brian Potkin <claremont102@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Fri, 25 Jul 2014 10:33:05 GMT) (full text, mbox, link).


Message #15 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Brian Potkin <claremont102@gmail.com>
To: "Andre \"Osku\" Schmidt" <andre.osku.schmidt@gmail.com>, 755848@bugs.debian.org
Subject: Re: Bug#755848: preseed d-i netcfg/hostname does not set hostname
Date: Fri, 25 Jul 2014 11:25:33 +0100
On Wed 23 Jul 2014 at 23:12:02 +0200, Andre "Osku" Schmidt wrote:

> using "d-i netcfg/hostname string foobar" in preseed file still makes
> the installer to ask user for hostname. or when using kernel option
> priority=critcal hostname is silently set to "noname".
> 
> info from:
> https://www.debian.org/releases/wheezy/example-preseed.txt

  # Any hostname and domain names assigned from dhcp take precedence over
  # values set here. However, setting the values still prevents the questions
  # from being shown, even if values come from dhcp.
  d-i netcfg/get_hostname string unassigned-hostname

This line is used with "d-i netcfg/hostname string foobar".

I do not think this is a bug.

Regards,

Brian.



Information forwarded to debian-bugs-dist@lists.debian.org, phiber2000@gmx.de, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Wed, 10 Jun 2015 14:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Meier <phiber2000@gmx.de>:
Extra info received and forwarded to list. Copy sent to phiber2000@gmx.de, Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 10 Jun 2015 14:33:04 GMT) (full text, mbox, link).


Message #20 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Stefan Meier <phiber2000@gmx.de>
To: Debian Bug Tracking System <755848@bugs.debian.org>
Subject: Re: preseed d-i netcfg/hostname does not set hostname
Date: Wed, 10 Jun 2015 16:28:42 +0200
Package: netcfg
Version: 1.131
Followup-For: Bug #755848

As described in preseed example, setting 'netcfg/hostname' should "...force a hostname, regardless of what eigher the DHCP server returns...".
This worked with latest wheezy installer. In jessie it doesn't.

'debconf-get-selections --installer' tells me, that my custom hostname was set correctly during installation.
In sourcecode 'dhcp.c' of the netcfg-package (line 565-577) it's still present.

But hostname still keeps 'debian'...

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Wed, 21 Sep 2016 00:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to Eric Desrochers <eric.desrochers@canonical.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 21 Sep 2016 00:12:06 GMT) (full text, mbox, link).


Message #25 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Eric Desrochers <eric.desrochers@canonical.com>
To: 755848@bugs.debian.org
Subject: Patch
Date: Tue, 20 Sep 2016 20:10:07 -0400
[Message part 1 (text/plain, inline)]
This patch include a script under finish-install.d/56netcfg-hostname that detect if netcfg/hostname is set in preseed file and override the hostname at the end of the installation. If not set then it keeps the hostname as is.
[0001-Fix-netcfg-hostname-that-does-not-set-hostname.patch (text/x-patch, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Wed, 05 Oct 2016 13:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Eric Desrochers <eric.desrochers@canonical.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 05 Oct 2016 13:03:02 GMT) (full text, mbox, link).


Message #30 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Eric Desrochers <eric.desrochers@canonical.com>
To: 755848@bugs.debian.org
Subject: preseed d-i netcfg/hostname does not set hostname
Date: Wed, 5 Oct 2016 08:59:56 -0400
Disregard the proposed patch above "0001-Fix-netcfg-hostname-that-does-not-set-hostname.patch"

I'll be working on a new one which will include some improvement.

Stay tuned .....




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#755848; Package netcfg. (Thu, 06 Oct 2016 04:15:06 GMT) (full text, mbox, link).


Acknowledgement sent to Eric Desrochers <eric.desrochers@canonical.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Thu, 06 Oct 2016 04:15:06 GMT) (full text, mbox, link).


Message #35 received at 755848@bugs.debian.org (full text, mbox, reply):

From: Eric Desrochers <eric.desrochers@canonical.com>
To: 755848@bugs.debian.org
Subject: Patch in preseed src code
Date: Thu, 6 Oct 2016 00:13:31 -0400
[Message part 1 (text/plain, inline)]
This patch in preseed source code addresses the situation.

This is the patch we pushed in Ubuntu[1] releases.

Thanks to cyphermox for the joint works (co-authorship).

[1] - https://bugs.launchpad.net/ubuntu/+source/preseed/+bug/1452202

Eric
[Message part 2 (text/html, inline)]
[0001-Fix-for-netcfg-hostname-if-set-to-take-precedence.patch (text/x-patch, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 10 07:42:27 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.