Avahi: Don't start the avahi-daemon if dot local domain is there

More info is at the following link
https://web.archive.org/web/20150228130344/http://avahi.org/wiki/AvahiAndUnicastDotLocal

This commit creates the avahi user and avahi group,as there may be cases
where one of them don't exist due to code update.

for example a BMC image that has additional user accounts
(and therefore a bigger /etc/group file) is installed on the BMC,
the /etc/group or /etc/passwd file would not be updated because is part of the
persistent files, so the old /etc/group or /etc/passwd file would remain.

Tested: 1) System which doesn't have avahi group,With this fix creates the
            group and start the avahi daemon.
        2) Verified on the system where there is a zone
           .local is being used by the DNS server,avahi-daemon was not started.

Resolves openbmc/openbmc#2788

Change-Id: I23b7a6cdd21bcefbea3d854fec8faa21c70378e9
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
5 files changed
tree: 9455b05e1bc1bda5cf256fcb3b9ba850d7608536
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE
  7. README.md
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.