Sets hostname but doesn't ensure it's in /etc/hosts
Bug #163798 reported by
Loïc Minier
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samsung-q1-ultra-config (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ume-config-common (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
While testing new hardy-based images, some programs such as sudo would complain about the host being unknown. It seems this is due to the hostname being set to "mobile-" + anything but this name not being present in /etc/hosts.
Bye,
Changed in samsung-q1-ultra-config: | |
status: | New → Fix Released |
Changed in ume-config-common: | |
status: | New → Fix Released |
To post a comment you must log in.
Analysis of the current system:
/etc/hostname is generated by ume-config-common's postinst, to set the hostname to "mobile-0000".
/etc/init. d/hostname. sh, usually provided by initscripts, is overriden by ume-config-samsung; the difference in this script is that when the hostname matches with "^mobile-....", it will set to "mobile-" + four first hex digits of the MD5 sum of the first line of output of ifconfig eth0. This will generate a different hostname for some different MAC addresses.