[OE-core] [PATCH 1/1] netbase/base-files: move /etc/hosts from netbase to base-files
Burton, Ross
ross.burton at intel.com
Tue Jan 8 12:45:46 UTC 2019
On Tue, 8 Jan 2019 at 12:45, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Tue, 2019-01-08 at 12:40 +0000, Burton, Ross wrote:
> > On Tue, 8 Jan 2019 at 09:06, Chen Qi <Qi.Chen at windriver.com> wrote:
> > > if [ "${hostname}" ]; then
> > > echo ${hostname} > ${D}${sysconfdir}/hostname
> > > + echo "127.0.1.1 ${hostname}" >>
> > > ${D}${sysconfdir}/hosts
> > > fi
> >
> > Instead of appending to the file, can you put a marker on the
> > 127.0.0.1 line and replace it inline?
>
> Not so good if hostname isn't set?
hostname = "${MACHINE}"
Hostname is always set. :)
Ross
More information about the Openembedded-core
mailing list