Bug 2768 - systemd should require nss-myhostname
Summary: systemd should require nss-myhostname
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: D Morgan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-18 14:18 CEST by Dick Gevers
Modified: 2011-09-28 21:58 CEST (History)
0 users

See Also:
Source RPM: systemd-35-3.mga2
CVE:
Status comment:


Attachments

Description Dick Gevers 2011-09-18 14:18:05 CEST
Description of problem:

Using systemd this warning is shown in /var/log/warnings:

Sep 16 18:12:43 dvg systemd-hostnamed[21523]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!

Also see this reference please:
http://0pointer.de/lennart/projects/nss-myhostname/

reading inter alia:
nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution for the locally configured system hostname as returned by gethostname(2). Various software relies on an always resolvable local host name. When using dynamic hostnames this is usually achieved by patching /etc/hosts at the same time as changing the host name. This however is not ideal since it requires a writable /etc file system and is fragile because the file might be edited by the administrator at the same time. nss-myhostname simply returns all locally configure public IP addresses, or -- if none are configured -- the IPv4 address 127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1 (which is the local host) for whatever system hostname is configured locally. Patching /etc/hosts is thus no longer necessary.

There are already packages for Fedora and Suse. This may also be considered to be a new package request (but with a require also from the systemd package).
Manuel Hiebel 2011-09-19 00:15:11 CEST

Assignee: bugsquad => dmorganec

Comment 1 Dick Gevers 2011-09-24 18:19:56 CEST
Thanks dmorgan for package nss-myhostname: warning is gone now.

All that remains is a require in the systemd package.
Comment 2 Dick Gevers 2011-09-28 21:58:55 CEST
Fixed today.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.