Ignore DHCP hostname if name is specified in kernel command line

Bug #704768 reported by jhansonxi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: debian-installer

Ubuntu 10.04 (Lucid Lynx) i386/amd64
debian-installer from Minimal CD ISO
https://help.ubuntu.com/community/Installation/MinimalCD

A hostname is specified using the hostname alias on the kernel command line as per the Debian manual:
http://d-i.alioth.debian.org/manual/en.i386/apbs02.html (B.2.4. Aliases useful with preseeding)
If the DHCP server also returns a hostname it is used instead of the manually specified one.

Example: If I boot a system with Knoppix, my DHCP server (IPCop 1.4) remembers the system it as "Knoppix". If I then PXE boot the Minimal ISO (loopback mounted), set the hostname to "newsystem1" and perform the installation, the target system ends up with a /etc/hostname set to knoppix.

It looks like the DHCP hostname usage was a feature:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=239121

but it needs to be ignored when a kernel boot command line specifies "hostname".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.