On Tue, 2019-01-08 at 12:45 +0000, Burton, Ross wrote: > On Tue, 8 Jan 2019 at 12:45, Richard Purdie > <[email protected]> wrote: > > On Tue, 2019-01-08 at 12:40 +0000, Burton, Ross wrote: > > > On Tue, 8 Jan 2019 at 09:06, Chen Qi <[email protected]> > > > 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. :)
Its the kind of thing people likely bbappend and change, or set from overrides. Which was one of the reasons I'm nervous about moving hosts to a different package in the first place... Cheers, RIchard -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
