Debian Bug report logs - #610526
Preseed: Debian Installer ignores hostname parameter

version graph

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

Reported by: Dennis Hoppe <dennis.hoppe@credativ.de>

Date: Wed, 19 Jan 2011 13:15:08 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version netcfg/1.46

Done: Matthew Palmer <mpalmer@debian.org>

Bug is archived. No further changes may be made.

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#610526; Package debian-installer. (Wed, 19 Jan 2011 13:15:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Hoppe <dennis.hoppe@credativ.de>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Wed, 19 Jan 2011 13:15:11 GMT) Full text and rfc822 format available.

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

From: Dennis Hoppe <dennis.hoppe@credativ.de>
To: submit@bugs.debian.org
Subject: Preseed: Debian Installer ignores hostname parameter
Date: Wed, 19 Jan 2011 14:10:31 +0100
[Message part 1 (text/plain, inline)]
Package: debian-installer
Version: 20090123lenny8
Severity: normal

Hello,

i have added the following lines to the file "isolinux/txt.cfg", but the
Debian Installer ignores the hostname parameter.

label basic
        menu label ^Install basic
        kernel /install.386/vmlinuz
        append  auto=true priority=critical vga=791
initrd=/install.386/initrd.gz file=/cdrom/preseed/basic.cfg
DEBCONF_DEBUG=5 hostname=basic -- quiet

After the installation the hostname is set to "unassigned-hostname".

This Problem only exists with the current lenny release (5.0.7). It
worked with earlier releases and the daily squeeze build.

Regards, Dennis

[signature.asc (application/pgp-signature, attachment)]

Bug reassigned from package 'debian-installer' to 'netcfg'. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Wed, 19 Jan 2011 20:03:02 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions debian-installer/20090123lenny8. Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (Wed, 19 Jan 2011 20:03:03 GMT) Full text and rfc822 format available.

Bug Marked as found in versions netcfg/1.46. Request was from Matthew Palmer <mpalmer@debian.org> to control@bugs.debian.org. (Wed, 19 Jan 2011 22:48:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#610526; Package netcfg. (Thu, 20 Jan 2011 01:21:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Palmer <mpalmer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Thu, 20 Jan 2011 01:21:08 GMT) Full text and rfc822 format available.

Message #16 received at 610526@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: 610526@bugs.debian.org, 610526-submitter@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Preseed: Debian Installer ignores hostname parameter
Date: Thu, 20 Jan 2011 12:16:56 +1100
package netcfg
tag 610526 +moreinfo
tag 610526 +unreproducible
thanks

Hi Dennis,

I'm having some trouble reproducing your bug report.

Here are the exact steps I took:

1) Download the mini.iso from
http://mirror.internode.on.net/pub/debian/dists/lenny/main/installer-i386/20090123lenny8/images/netboot/
(other mirrors should have the same; md5sum is
1f497d52bb97c03810d3e87d8ecf5d94)

2) Boot the installer ISO in a KVM VM

3) At the graphical isolinux boot screen, press TAB and add 'hostname=basic'
to the end of the command line

(I can't use priority=critical because I need to set a local Debian mirror,
and auto=true just asks for a preseed file -- which I don't have because you
haven't provided it)

4) Manually configure the network (I disabled my DHCP server so that it
wouldn't provide a hostname) with an IP address that doesn't reverse resolve
(to avoid hostname being overridden via rDNS)

5) When it asks to configure the mirror, drop into a console and verify that
the temporary environment has the right hostname with cat /etc/hostname

6) Let the installation proceed, automatically partitioning the disk and
setting up some dummy users

7) When it comes to installing grub, drop back to a console and verify that
the target environment has the right hostname with cat /target/etc/hostname

8) Complete the install, reboot, note that the booted system has the correct
hostname.

Now, I know that a number of things are different between your report and my
method of reproduction, but they *should* (big emphasis there) be irrelevant
to how the hostname is preseeded.  Obviously one of them isn't irrelevant,
so we need to work out what it is.

Things to check:

* The kernel and initrd you're booting with; can I get the md5sums of them
  and where you got them from?

* Booting without a preseed file... it's possible that your preseed file is
  doing something hinky, so if you *must* test with a preseed file, we'll
  need a copy of it.
  
* Dropping priority=critical for the purposes of testing would be
  good, too, to keep things consistent and to rule it out (although early
  testing showed that /etc/hostname had the right value in it).

Thanks,
- Matt




Added tag(s) moreinfo. Request was from Matthew Palmer <mpalmer@debian.org> to control@bugs.debian.org. (Thu, 20 Jan 2011 01:21:10 GMT) Full text and rfc822 format available.

Added tag(s) unreproducible. Request was from Matthew Palmer <mpalmer@debian.org> to control@bugs.debian.org. (Thu, 20 Jan 2011 01:21:10 GMT) Full text and rfc822 format available.

Message sent on to Dennis Hoppe <dennis.hoppe@credativ.de>:
Bug#610526. (Thu, 20 Jan 2011 01:21:13 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#610526; Package netcfg. (Fri, 21 Jan 2011 15:57:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Hoppe <dennis.hoppe@credativ.de>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Fri, 21 Jan 2011 15:57:05 GMT) Full text and rfc822 format available.

Message #28 received at 610526@bugs.debian.org (full text, mbox):

From: Dennis Hoppe <dennis.hoppe@credativ.de>
To: Matthew Palmer <mpalmer@debian.org>, 610526-quiet@bugs.debian.org
Cc: 610526@bugs.debian.org, 610526-submitter@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Fri, 21 Jan 2011 16:54:40 +0100
[Message part 1 (text/plain, inline)]
Hello Matthew,

Am 20.01.2011 02:16, schrieb Matthew Palmer:
> I'm having some trouble reproducing your bug report.
> 
> Here are the exact steps I took:
> 
> 1) Download the mini.iso from
> http://mirror.internode.on.net/pub/debian/dists/lenny/main/installer-i386/20090123lenny8/images/netboot/
> (other mirrors should have the same; md5sum is
> 1f497d52bb97c03810d3e87d8ecf5d94)
> 
> 2) Boot the installer ISO in a KVM VM
> 
> 3) At the graphical isolinux boot screen, press TAB and add 'hostname=basic'
> to the end of the command line
> 
> (I can't use priority=critical because I need to set a local Debian mirror,
> and auto=true just asks for a preseed file -- which I don't have because you
> haven't provided it)
> 
> 4) Manually configure the network (I disabled my DHCP server so that it
> wouldn't provide a hostname) with an IP address that doesn't reverse resolve
> (to avoid hostname being overridden via rDNS)
> 
> 5) When it asks to configure the mirror, drop into a console and verify that
> the temporary environment has the right hostname with cat /etc/hostname
> 
> 6) Let the installation proceed, automatically partitioning the disk and
> setting up some dummy users
> 
> 7) When it comes to installing grub, drop back to a console and verify that
> the target environment has the right hostname with cat /target/etc/hostname
> 
> 8) Complete the install, reboot, note that the booted system has the correct
> hostname.
> 
> Now, I know that a number of things are different between your report and my
> method of reproduction, but they *should* (big emphasis there) be irrelevant
> to how the hostname is preseeded.  Obviously one of them isn't irrelevant,
> so we need to work out what it is.
> 
> Things to check:
> 
> * The kernel and initrd you're booting with; can I get the md5sums of them
>   and where you got them from?

i am using the file "debian-multi_5.0.7.iso" from one of the official
Debian mirrors and have not changed the initrd. I only modified the file
"isolinux/txt.cfg" to choose a specific preseed config.

> * Booting without a preseed file... it's possible that your preseed file is
>   doing something hinky, so if you *must* test with a preseed file, we'll
>   need a copy of it.

Of course. Here ist my little preseed config. But exact the same file
worked with Debian 5.0.6 and also works with Debian 6.x.x.

> * Dropping priority=critical for the purposes of testing would be
>   good, too, to keep things consistent and to rule it out (although early
>   testing showed that /etc/hostname had the right value in it).

During the whole installation process the file "target/etc/hostname"
hast the content "unassinged-hostname" and the dhcp of virtualbox does
not offer any hostnames.

Regards, Dennis
[server.cfg (text/plain, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information stored :
Bug#610526; Package netcfg. (Fri, 21 Jan 2011 15:57:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Hoppe <dennis.hoppe@credativ.de>:
Extra info received and filed, but not forwarded. (Fri, 21 Jan 2011 15:57:07 GMT) Full text and rfc822 format available.

Message sent on to Dennis Hoppe <dennis.hoppe@credativ.de>:
Bug#610526. (Fri, 21 Jan 2011 15:57:09 GMT) Full text and rfc822 format available.

Removed tag(s) moreinfo. Request was from Matthew Palmer <mpalmer@debian.org> to control@bugs.debian.org. (Sun, 23 Jan 2011 02:45:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#610526; Package netcfg. (Mon, 24 Jan 2011 07:36:13 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Palmer <mpalmer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 24 Jan 2011 07:36:13 GMT) Full text and rfc822 format available.

Message #43 received at 610526@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: Dennis Hoppe <dennis.hoppe@credativ.de>
Cc: 610526@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Mon, 24 Jan 2011 18:28:07 +1100
On Fri, Jan 21, 2011 at 04:54:40PM +0100, Dennis Hoppe wrote:
> Am 20.01.2011 02:16, schrieb Matthew Palmer:
> > * The kernel and initrd you're booting with; can I get the md5sums of them
> >   and where you got them from?
> 
> i am using the file "debian-multi_5.0.7.iso" from one of the official
> Debian mirrors and have not changed the initrd.

I can't find any CD image with that name; all the files I've found follow a
very different naming convention.  Could you give me the full URL to the
file that you downloaded?

- Matt




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#610526; Package netcfg. (Mon, 24 Jan 2011 17:09:15 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dennis Hoppe <dennis.hoppe@credativ.de>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 24 Jan 2011 17:09:16 GMT) Full text and rfc822 format available.

Message #48 received at 610526@bugs.debian.org (full text, mbox):

From: Dennis Hoppe <dennis.hoppe@credativ.de>
To: Matthew Palmer <mpalmer@debian.org>
Cc: 610526@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Mon, 24 Jan 2011 18:05:53 +0100
[Message part 1 (text/plain, inline)]
Hello Matthew,

Am 24.01.2011 08:28, schrieb Matthew Palmer:
> On Fri, Jan 21, 2011 at 04:54:40PM +0100, Dennis Hoppe wrote:
>> Am 20.01.2011 02:16, schrieb Matthew Palmer:
>>> * The kernel and initrd you're booting with; can I get the md5sums of them
>>>   and where you got them from?
>>
>> i am using the file "debian-multi_5.0.7.iso" from one of the official
>> Debian mirrors and have not changed the initrd.
> 
> I can't find any CD image with that name; all the files I've found follow a
> very different naming convention.  Could you give me the full URL to the
> file that you downloaded?

my mistake. The file above is based on my own naming convention. I used
the following URL.

http://cdimage.debian.org/debian-cd/current/multi-arch/iso-cd/debian-507-amd64-i386-powerpc-netinst.iso

Regards, Dennis

[signature.asc (application/pgp-signature, attachment)]

Added tag(s) moreinfo. Request was from Matthew Palmer <mpalmer@debian.org> to control@bugs.debian.org. (Mon, 24 Jan 2011 20:00:10 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#610526; Package netcfg. (Mon, 24 Jan 2011 20:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Palmer <mpalmer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 24 Jan 2011 20:03:03 GMT) Full text and rfc822 format available.

Message #55 received at 610526@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: Dennis Hoppe <dennis.hoppe@credativ.de>
Cc: 610526@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Tue, 25 Jan 2011 06:11:28 +1100
On Mon, Jan 24, 2011 at 06:05:53PM +0100, Dennis Hoppe wrote:
> Am 24.01.2011 08:28, schrieb Matthew Palmer:
> > On Fri, Jan 21, 2011 at 04:54:40PM +0100, Dennis Hoppe wrote:
> >> Am 20.01.2011 02:16, schrieb Matthew Palmer:
> >>> * The kernel and initrd you're booting with; can I get the md5sums of them
> >>>   and where you got them from?
> >>
> >> i am using the file "debian-multi_5.0.7.iso" from one of the official
> >> Debian mirrors and have not changed the initrd.
> > 
> > I can't find any CD image with that name; all the files I've found follow a
> > very different naming convention.  Could you give me the full URL to the
> > file that you downloaded?
> 
> my mistake. The file above is based on my own naming convention. I used
> the following URL.
> 
> http://cdimage.debian.org/debian-cd/current/multi-arch/iso-cd/debian-507-amd64-i386-powerpc-netinst.iso

Thanks for that.  I've examined the differences between this image and the
corresponding one for 5.0.6, and I can't find anything that would account
for the difference in behaviour.  In particular, the versions of netcfg (the
component that handles the hostname) are the same, and it doesn't have a lot
of external dependencies that could affect it.

Unfortunately, without any ability to reproduce the problem, or any way to
narrow down what the difference might be, I'm afraid I can't go any further
with this bug report.  Also, as Squeeze is very close to release, and you've
reported that the squeeze installer works fine, there's a limit to how much
time I'm willing to expend trying to reproduce the problem.  If you have or
discover any further information that might help, please feel free to e-mail
the bug report, otherwise this will have to languish, and will be closed
once woody is no longer supported.

- Matt




Reply sent to Matthew Palmer <mpalmer@debian.org>:
You have taken responsibility. (Tue, 25 Jan 2011 04:21:04 GMT) Full text and rfc822 format available.

Notification sent to Dennis Hoppe <dennis.hoppe@credativ.de>:
Bug acknowledged by developer. (Tue, 25 Jan 2011 04:21:04 GMT) Full text and rfc822 format available.

Message #60 received at 610526-done@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: Dennis Hoppe <dennis.hoppe@credativ.de>
Cc: 610526-done@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Tue, 25 Jan 2011 15:18:45 +1100
On Mon, Jan 24, 2011 at 09:37:18PM +0100, Dennis Hoppe wrote:
> Hello Matthew,
> maybe this log file can help you. As you see i have set the hostname in
> the beginning as kernel parameter, but the installer is setting it as
> "unassigned-hostname".

Strangely enough, it did help.  It reminded me that 'unassigned-hostname'
isn't set by netcfg (it uses 'debian' as the default hostname).  Instead,
the preseed file you sent earlier contains the line:

d-i netcfg/get_hostname string unassigned-hostname

Which is what's causing the drama.  Remove that line (and the one after it,
preferably) and I strongly suspect all will be well.

- Matt




Information stored :
Bug#610526; Package netcfg. (Tue, 25 Jan 2011 04:21:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Palmer <mpalmer@debian.org>:
Extra info received and filed, but not forwarded. (Tue, 25 Jan 2011 04:21:06 GMT) Full text and rfc822 format available.

Message #65 received at 610526-quiet@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: 610526-quiet@bugs.debian.org
Subject: Log file
Date: Tue, 25 Jan 2011 15:19:47 +1100
[Message part 1 (text/plain, inline)]
syslog file from Dennis' install.
[syslog.gz (application/octet-stream, attachment)]

Message #66 received at 610526-done@bugs.debian.org (full text, mbox):

From: Dennis Hoppe <dennis.hoppe@credativ.de>
To: Matthew Palmer <mpalmer@debian.org>
Cc: 610526-done@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Thu, 27 Jan 2011 09:10:17 +0100
[Message part 1 (text/plain, inline)]
Hello Matthew,

Am 25.01.2011 05:18, schrieb Matthew Palmer:
> On Mon, Jan 24, 2011 at 09:37:18PM +0100, Dennis Hoppe wrote:
>> Hello Matthew,
>> maybe this log file can help you. As you see i have set the hostname in
>> the beginning as kernel parameter, but the installer is setting it as
>> "unassigned-hostname".
> 
> Strangely enough, it did help.  It reminded me that 'unassigned-hostname'
> isn't set by netcfg (it uses 'debian' as the default hostname).  Instead,
> the preseed file you sent earlier contains the line:
> 
> d-i netcfg/get_hostname string unassigned-hostname
> 
> Which is what's causing the drama.  Remove that line (and the one after it,
> preferably) and I strongly suspect all will be well.

i have no idea why this worked in the previous releases of lenny, but if
i comment out the line above everything works fine. Do you have any idea
why this works in squeeze without commenting out tis specific line?

Regards, Dennis

[signature.asc (application/pgp-signature, attachment)]

Information stored :
Bug#610526; Package netcfg. (Thu, 27 Jan 2011 22:30:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew Palmer <mpalmer@debian.org>:
Extra info received and filed, but not forwarded. (Thu, 27 Jan 2011 22:30:08 GMT) Full text and rfc822 format available.

Message #71 received at 610526-quiet@bugs.debian.org (full text, mbox):

From: Matthew Palmer <mpalmer@debian.org>
To: Dennis Hoppe <dennis.hoppe@credativ.de>
Cc: 610526-quiet@bugs.debian.org
Subject: Re: Bug#610526: Preseed: Debian Installer ignores hostname parameter
Date: Fri, 28 Jan 2011 06:46:58 +1100
On Thu, Jan 27, 2011 at 09:10:17AM +0100, Dennis Hoppe wrote:
> Hello Matthew,
> 
> Am 25.01.2011 05:18, schrieb Matthew Palmer:
> > On Mon, Jan 24, 2011 at 09:37:18PM +0100, Dennis Hoppe wrote:
> >> Hello Matthew,
> >> maybe this log file can help you. As you see i have set the hostname in
> >> the beginning as kernel parameter, but the installer is setting it as
> >> "unassigned-hostname".
> > 
> > Strangely enough, it did help.  It reminded me that 'unassigned-hostname'
> > isn't set by netcfg (it uses 'debian' as the default hostname).  Instead,
> > the preseed file you sent earlier contains the line:
> > 
> > d-i netcfg/get_hostname string unassigned-hostname
> > 
> > Which is what's causing the drama.  Remove that line (and the one after it,
> > preferably) and I strongly suspect all will be well.
> 
> i have no idea why this worked in the previous releases of lenny, but if
> i comment out the line above everything works fine. Do you have any idea
> why this works in squeeze without commenting out tis specific line?

No idea.  Perhaps the preseeding system was modified to override settings in
preseed files with values on the boot command line.  You'd have to ask the
people who maintain the preseed package.

- Matt





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 25 Feb 2011 07:32:59 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 15:43:19 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.