[Bug 837385] Re: hostname from dhcp STILL not set, despite multiple ubuntu fixes and bug reports
perpetualrabbit
perpetualrabbit at gmail.com
Wed Aug 31 10:07:31 UTC 2011
So, adding a file `hostname´ to /etc/dhcp/dhclient-exit-hooks.d/ with this in it:
# ===== begin /etc/dhcp/dhclient-exit-hooks.d/hostname ======
if [ -n $new_host_name ]
then
echo "$new_host_name" > /etc/hostname
/bin/hostname $new_host_name
fi
# ===== end /etc/dhcp/dhclient-exit-hooks.d/hostname ======
_kind of_ works to fix this problem. But on text consoles it still reads `localhost login´,
and only after actually login is the hostname there on the prompt. Ugly. So it is not a
complete fix.
Why is it that the hostname gets set so late when I set it up like this?
Is the upstart /etc/init/hostname.conf script executed _before_ the
upbringing of the network? That could explain this.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in Ubuntu.
https://bugs.launchpad.net/bugs/837385
Title:
hostname from dhcp STILL not set, despite multiple ubuntu fixes and
bug reports
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dhcp3/+bug/837385/+subscriptions
More information about the Ubuntu-server-bugs
mailing list