[OE-core] [PATCH] netbase: Adding loop back for machine name in hosts file
Mark Hatle
mark.hatle at windriver.com
Fri Aug 1 00:20:56 UTC 2014
On 7/31/14, 3:44 PM, Otavio Salvador wrote:
> On Thu, Jul 31, 2014 at 1:20 PM, Enrico Scholz
> <enrico.scholz at sigma-chemnitz.de> wrote:
>> Sujith H <sujith.h-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> writes:
>>
>>> + echo 127.0.1.1 " "${MACHINE} >> ${D}${sysconfdir}/hosts
>>
>> This is a very questionable setup which causes a lot of harm. When
>> really wanted, it should be made optional and not the default.
>
> What kind of harm you see?
>
> I think moving this to postinst works for me and does not cause
> problems I think.
>
The only default configuration for 127.0.0.1 (not 1.1) should be localhost.
Anything after that is installation independent and should be configured outside
of the 'package' scope...
I recommend ROOTFS_POSTINSTALL_COMMAND...
--Mark
More information about the Openembedded-core
mailing list