* [PATCH] netbase: Adding loop back for machine name in hosts file
@ 2014-07-31 14:59 Sujith H
2014-07-31 15:42 ` Khem Raj
2014-07-31 16:20 ` Enrico Scholz
0 siblings, 2 replies; 8+ messages in thread
From: Sujith H @ 2014-07-31 14:59 UTC (permalink / raw)
To: openembedded-core; +Cc: Sujith H
From: Sujith H <Sujith_Haridasan@mentor.com>
If hostname is not added to /etc/hosts file then rpcinfo
command fails when hostname is passed as argument. This was
observed when rpcinfo command was tested on freescale target.
Below was the output observed without this change.
root@mx6q:~# rpcinfo -s mx6q
rpcinfo: can't contact rpcbind: RPC: (unknown error code)
Below is the output after this change:
root@mx6q:~# rpcinfo -s mx6q
program version(s) netid(s) service owner
100000 2,3,4 local,udp,tcp,udp6,tcp6 portmapper superuser
root@mx6q:~#
Signed-off-by: Sujith H <sujith.h@gmail.com>
---
meta/recipes-core/netbase/netbase_5.2.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/netbase/netbase_5.2.bb b/meta/recipes-core/netbase/netbase_5.2.bb
index ab7ae65..a6fb010 100644
--- a/meta/recipes-core/netbase/netbase_5.2.bb
+++ b/meta/recipes-core/netbase/netbase_5.2.bb
@@ -18,6 +18,7 @@ do_install () {
install -m 0644 etc-rpc ${D}${sysconfdir}/rpc
install -m 0644 etc-protocols ${D}${sysconfdir}/protocols
install -m 0644 etc-services ${D}${sysconfdir}/services
+ echo 127.0.1.1 " "${MACHINE} >> ${D}${sysconfdir}/hosts
}
CONFFILES_${PN} = "${sysconfdir}/hosts"
--
1.8.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 14:59 [PATCH] netbase: Adding loop back for machine name in hosts file Sujith H
@ 2014-07-31 15:42 ` Khem Raj
2014-07-31 15:48 ` Mark Hatle
2014-07-31 16:20 ` Enrico Scholz
1 sibling, 1 reply; 8+ messages in thread
From: Khem Raj @ 2014-07-31 15:42 UTC (permalink / raw)
To: Sujith H; +Cc: Sujith H, Patches and discussions about the oe-core layer
On Thu, Jul 31, 2014 at 7:59 AM, Sujith H <sujith.h@gmail.com> wrote:
> + echo 127.0.1.1 " "${MACHINE} >> ${D}${sysconfdir}/hosts
recipe will become MACHNE specific. Can this be done via post
processing funcs instead ?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 15:42 ` Khem Raj
@ 2014-07-31 15:48 ` Mark Hatle
0 siblings, 0 replies; 8+ messages in thread
From: Mark Hatle @ 2014-07-31 15:48 UTC (permalink / raw)
To: Khem Raj, Sujith H
Cc: Sujith H, Patches and discussions about the oe-core layer
On 7/31/14, 10:42 AM, Khem Raj wrote:
> On Thu, Jul 31, 2014 at 7:59 AM, Sujith H <sujith.h@gmail.com> wrote:
>> + echo 127.0.1.1 " "${MACHINE} >> ${D}${sysconfdir}/hosts
>
> recipe will become MACHNE specific. Can this be done via post
> processing funcs instead ?
>
I had the same comment. We don't want to do this in the recipe itself. Instead
we want to likely add a rootfs/image configuration step, like the
zap_root_password and similar actions.
This way it can be enabled/disabled more easily based on user requirements.
--Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 14:59 [PATCH] netbase: Adding loop back for machine name in hosts file Sujith H
2014-07-31 15:42 ` Khem Raj
@ 2014-07-31 16:20 ` Enrico Scholz
2014-07-31 20:44 ` Otavio Salvador
1 sibling, 1 reply; 8+ messages in thread
From: Enrico Scholz @ 2014-07-31 16:20 UTC (permalink / raw)
To: openembedded-core
Sujith H <sujith.h-Re5JQEeQqe8AvxtiuMwx3w@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.
Enrico
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 16:20 ` Enrico Scholz
@ 2014-07-31 20:44 ` Otavio Salvador
2014-08-01 0:20 ` Mark Hatle
2014-08-01 9:22 ` Enrico Scholz
0 siblings, 2 replies; 8+ messages in thread
From: Otavio Salvador @ 2014-07-31 20:44 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Patches and discussions about the oe-core layer
On Thu, Jul 31, 2014 at 1:20 PM, Enrico Scholz
<enrico.scholz@sigma-chemnitz.de> wrote:
> Sujith H <sujith.h-Re5JQEeQqe8AvxtiuMwx3w@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.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 20:44 ` Otavio Salvador
@ 2014-08-01 0:20 ` Mark Hatle
2014-08-01 9:22 ` Enrico Scholz
1 sibling, 0 replies; 8+ messages in thread
From: Mark Hatle @ 2014-08-01 0:20 UTC (permalink / raw)
To: openembedded-core
On 7/31/14, 3:44 PM, Otavio Salvador wrote:
> On Thu, Jul 31, 2014 at 1:20 PM, Enrico Scholz
> <enrico.scholz@sigma-chemnitz.de> wrote:
>> Sujith H <sujith.h-Re5JQEeQqe8AvxtiuMwx3w@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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-07-31 20:44 ` Otavio Salvador
2014-08-01 0:20 ` Mark Hatle
@ 2014-08-01 9:22 ` Enrico Scholz
2014-08-04 13:57 ` sujith h
1 sibling, 1 reply; 8+ messages in thread
From: Enrico Scholz @ 2014-08-01 9:22 UTC (permalink / raw)
To: openembedded-core
Otavio Salvador <otavio-fKevB0iiKLMBZ+LybsDmbA@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?
e.g. in sshd_config
| ListenAddress <hostname>
When Fedora had such a setup, I had a lot of trouble with KRB5ized
NFS4. See [1] for examples. Generally, external and internal DNS should
be consistent.
Beside this... afaik ${MACHINE} can contain '_' and '.' which are either
forbidden ('_') or have special meanings in DNS.
Enrico
Footnotes:
[1] https://bugzilla.redhat.com/show_bug.cgi?id=648725
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] netbase: Adding loop back for machine name in hosts file
2014-08-01 9:22 ` Enrico Scholz
@ 2014-08-04 13:57 ` sujith h
0 siblings, 0 replies; 8+ messages in thread
From: sujith h @ 2014-08-04 13:57 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]
Hi,
I will post the new patch with ROOTFS_POSTPROCESS_COMMAND.
Thanks for the feedback.
On Fri, Aug 1, 2014 at 2:52 PM, Enrico Scholz <
enrico.scholz@sigma-chemnitz.de> wrote:
> Otavio Salvador <otavio-fKevB0iiKLMBZ+LybsDmbA@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?
>
> e.g. in sshd_config
>
> | ListenAddress <hostname>
>
>
> When Fedora had such a setup, I had a lot of trouble with KRB5ized
> NFS4. See [1] for examples. Generally, external and internal DNS should
> be consistent.
>
> Beside this... afaik ${MACHINE} can contain '_' and '.' which are either
> forbidden ('_') or have special meanings in DNS.
>
>
> Enrico
>
> Footnotes:
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=648725
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
Thanks,
Sujith H
--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
[-- Attachment #2: Type: text/html, Size: 2564 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-08-04 13:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 14:59 [PATCH] netbase: Adding loop back for machine name in hosts file Sujith H
2014-07-31 15:42 ` Khem Raj
2014-07-31 15:48 ` Mark Hatle
2014-07-31 16:20 ` Enrico Scholz
2014-07-31 20:44 ` Otavio Salvador
2014-08-01 0:20 ` Mark Hatle
2014-08-01 9:22 ` Enrico Scholz
2014-08-04 13:57 ` sujith h
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.