hostnamed should not print warning about nss-myhostname

Bug #1277608 reported by Marc Deslauriers on 2014-02-07
338
This bug affects 78 people
Affects Status Importance Assigned to Milestone
systemd (Debian)
New
Undecided
Unassigned
systemd (Ubuntu)
Undecided
Unassigned

Bug Description

Currently hostnamed prints the following error in syslog:

systemd-hostnamed[24508]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!

Since nss-myhostname was rejected as being the right approach in https://bugs.launchpad.net/ubuntu/+source/libnss-myhostname/+bug/1162478/comments/6 , we should not print the warning message in the LTS release, even if hostnamed doesn't currently modify /etc/hosts (LP: #1162475).

Can we please patch this warning out to prevent users from thinking something is wrong on their system and leading them to install libnss-myhostname?

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: systemd-services 204-5ubuntu10
ProcVersionSignature: Ubuntu 3.13.0-5.20-generic 3.13.0
Uname: Linux 3.13.0-5-generic x86_64
ApportVersion: 2.13.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Feb 7 12:12:20 2014
InstallationDate: Installed on 2013-11-26 (72 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: systemd
UpgradeStatus: Upgraded to trusty on 2014-01-17 (20 days ago)

Marc Deslauriers (mdeslaur) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Josh (majik) wrote :

Problem continues to exist on 14.10.

Spectrumknight (spectrumknight) wrote :

still having this awkward warning...

Marcus (elect-tech) wrote :

 It is still affecting 14.04LTS. Is this opening any security holes?

Nick Demou (ndemou) wrote :

This is _not_ a duplicate of bug #1162475 (titled "Changing hostname doesn't update /etc/hosts")

Ken Sharp (kennybobs) on 2015-12-04
tags: added: i386 utopic
Martin Wildam (mwildam) wrote :

Ubuntu 14.04 with latest patchlevel - I still notice that message and indeed thought, something is rotten.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers