Debian Bug report logs - #343269
hostname/domain name preseeding is quite broken

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

Reported by: Joey Hess <joeyh@debian.org>

Date: Wed, 14 Dec 2005 02:48:06 UTC

Severity: normal

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#343269; Package netcfg. Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. Full text and rfc822 format available.

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

From: Joey Hess <joeyh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: hostname/domain name preseeding is quite broken
Date: Tue, 13 Dec 2005 21:29:38 -0500
[Message part 1 (text/plain, inline)]
Package: netcfg
Severity: normal

The support for preseeding the hostname and domain name is very broken in
netcfg. The debconf questions netcfg/get_hostname and netcfg/get_domain are
badly named (should be netcfg/hostname and netcfg/domain). netcfg sets
these to values that it finds in dns or dhcp with no regard to any
existing preseeded value, so you can't override the dns or dhcp with
preseeding, which should be possible for installing on a broken network.

The installation manual puts the best face it can on netcfg's behavior
with this:

# 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
d-i netcfg/get_domain string unassigned-domain

I think that netcfg's use of these variables needs to be rewritten, to
make it 

a) take care to not trample over existing settings
b) if there is no existing value, use dhcp/dns to get a good default
c) if the user enters something wrong or goes back, unset the value to
   avoid a) above preventing b) from working when the question is asked
   again

Since it would change the behavior of the two questions to do this, and
require preseeding changes, this would be a good chance to rename them
too.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Feb 9 19:15:56 2010; Machine Name: busoni.debian.org

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