"sudo: unable to resolve host ..." when custom hostname is used.

Bug #1464396 reported by Simon Eisenmann on 2015-06-11
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Critical
Unassigned

Bug Description

When setting a hostname in OEM package.yaml every time sudo is run, it fails to resolve that host name. The host name is not added to /etc/hosts when the snappy image is built.

To reproduce add something like this to your package.yaml

config:
  ubuntu-core:
    hostname: odroid

Then check /etc/hosts - that hostname needs to be added there, possibly as 127.0.1.1 similar to what the normal Ubuntu is doing.

Michael Vogt (mvo) on 2015-08-25
Changed in snappy:
status: New → Triaged
importance: Undecided → Critical
summary: - "sudo: unable to resolve host ..."
+ "sudo: unable to resolve host ..." when custom hostname is used.
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers