On Mon, Nov 16, 2015 at 4:57 PM, Christopher Larson <[email protected]> wrote: > On Mon, Nov 16, 2015 at 7:14 AM, Andreas Müller > <[email protected]> wrote: >> >> for xfce-session we have some very bad workaround entering machine >> name to /etc/hosts [1] >> >> I looked into this and found (let's assume ${MACHINE}='foomachine'): >> >> * basefiles: By default /etc/hostname contains 'foomachine' >> * netbase: /etc/hosts contains '127.0.0.1 localhost.localdomain >> localhost' >> >> Shouldn't this be >> >> /etc/hosts: '127.0.0.1 foomachine localhost' >> or >> /etc/hostname: 'localhost.localdomain' >> >> To test do >> >> 'ping foomachine' >> or >> hostname -f >> >> What do experts say? >> >> [1] >> https://github.com/openembedded/meta-openembedded/blob/master/meta-xfce/recipes-xfce/xfce4-session/machine-host.bb > > > I'd suggest just installing nss-myhostname for sysvinit, and for systemd, > systemd already includes the myhostname nss plugin, so it just needs > enabling in nsswitch.conf (I submitted a patch recently to make it do that > by default). Thanks a lot - that looks promising. Will give the systemd nss path a test with your patch.
Andreas -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
