On 05/06/12 06:42, Mathieu Trudel-Lapierre wrote: > Indeed, ubiquity doesn't bother with checking the DHCP host name. > Perhaps it should -- that would be a bug in ubiquity. This is possibly > why you can't replicate the issue on virtual machines, in this case are > you using the alternate installer?
No, all installations have been done from scratch using the standard installer, except for one which was an upgrade from 10.04. > > Regardless, it's not really supported to remove /etc/hostname. The file > should instead be modified if the hostname for the system changes, along > with /etc/hosts (since it contains a "pointer" to 127.0.1.1 for that > name). At the same time, if lightdm fails to find the hostname (which is > "normal" if it's just looking for it in /etc/hostname), it's behaving > correctly in showing "localhost". Yeah I'm aware removing /etc/hostname isn't a good move. The story of how I ended up down this path is that in 10.04 you could set /etc/hostname to the magic string "(none)" and the DHCP supplied hostname would be honored. On my desktop the upgrade to 12.04 removed /etc/hostname (it had the magic string), and so I figured that was no longer supported. However the DHCP supplied hostname was still honored, though I had this login bug. There didn't seem to be another way to have the DHCP hostname honored. Having the DHCP hostname honored is convenient for us as it simplifies image deployment. Blat the image onto the desktop, stick it on the network, it picks up its hostname from DHCP and off we go, minimal intervention required. It's not a huge hassle to change /etc/hostname post image deployment, but it's something we didn't used to have to do. That may or may not have been interesting/useful to you. > What *is* broken is that the desktop > doesn't continue to load cleanly and instead falls back to the greeter. > > There needs to be some more investigation at the lightdm level for this; > for the reasons listed by Sebastien. > Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs