Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
To: openembedded-core@lists.openembedded.org
Subject: Why hostname is not in /etc/hosts?
Date: Wed, 28 Nov 2012 14:55:22 +0100	[thread overview]
Message-ID: <50B617CA.3070309@linaro.org> (raw)

When I start Apache on my target I get this:

AH00557: httpd: apr_sockaddr_info_get() failed for genericarmv8
AH00558: httpd: Could not reliably determine the server's fully
qualified domain name, using 127.0.0.1. Set the 'ServerName' directive
globally to suppress this message

Solution is "echo '127.0.0.1 genericarmv8' >>/etc/hosts" but this is not
what I would like to have to do on each first boot.

I looked more and found that /etc/hostname is set in base-files
(package_arch:machine) while /etc/hosts is in netbase
(package_arch:$arch (while package_arch:all would be enough)).

One solution which comes to my mind is to add $MACHINE entry in netbase
and make it p_arch:$MACHINE.

Other is do that in postinst but this will generate more work as upgrade
paths should not be broken.

Any other ideas?



                 reply	other threads:[~2012-11-28 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B617CA.3070309@linaro.org \
    --to=marcin.juszkiewicz@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox