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
Bugs, which is subscribed to 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
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs