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

Re: modify default hostname of a netinst



On Wed, May 11, 2005 at 01:34:16PM +0200, W. Borgert wrote:

> > I have customized a netinst. now I'm trying to modify also the
> > default hostname that the d-i will appear. I would change from 'debian'
> > to 'somethingelse'; I found the file 'hostname' in the
> > base-config_2.53.8_all.deb and I changed the 'hostname=debian' there.
> > but it was not enough. where the d-i retreive the default hostname ?
> 
> AFAIK, this is deeply in the C code.  See this thread:
> http://lists.debian.org/debian-boot/2005/01/msg00962.html  Setting
> the default hostname via preseeding or a config file would surely
> be a nice thing for CDDs/branding (e.g. Ubuntu).

You can preseed netcfg/get_hostname to change the default, although
there is still an error case that explicitly falls back to "debian".
(The Ubuntu package currently patches that to "ubuntu", which is of
course just more hardcoding ...)

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: