hostname should be settable via DHCP
Bug #42929 reported by
Christian Reis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
On diskless systems and other setups with centralized configuration, the hostname should be settable via DHCP.
To post a comment you must log in.
<kiko> so in our diskless network, hostnames are provided by the DHCP server
<kiko> salgado wrote a hack to the initramfs tools that sets the hostname based on what is provided
<kiko> infinity, a) do you know how this is handled for, say, ltsp? b) what do you think of the idea?
<infinity> kiko: For the ltsp use case, we'd want to talk to ogra, but the general principle is reasonable and sane.
<infinity> kiko: Do you then disable the init.d script that would (re)set the hostname based on /etc/hostname?
<kiko> infinity, we need to, yes.
<kiko> infinity, though we could change it to ignore /etc/hostname if a valid hostname is already set.
<infinity> kiko: Cause, I could pull that whole mechanism back into early userspace (yay, hostname set earlier!), then your feature would just need one more bit added to it (an initramfs.conf option, disabled by default), and we're set.
<infinity> kiko: Disabled by default, cause about 50% of the braodband ISPs I've used send hostnames via DHCP, and that's so not what the average user wants. :)
<kiko> infinity, that sounds awesome!