Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2019-01-07 Thread ChenQi
On 01/07/2019 10:38 PM, Richard Purdie wrote: On Fri, 2018-12-14 at 21:45 +, Burton, Ross wrote: On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote: We default hostname to ${MACHINE}, but it's not in /etc/hosts, resulting in commands like `hostname -f' failing due to lack of entry. So add entry

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2019-01-07 Thread Richard Purdie
On Fri, 2018-12-14 at 21:45 +, Burton, Ross wrote: > On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote: > > We default hostname to ${MACHINE}, but it's not in /etc/hosts, > > resulting in commands like `hostname -f' failing due to lack > > of entry. > > > > So add entry to /etc/hosts according to

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-12-26 Thread Jacob Kroon
On Wed, Dec 26, 2018 at 5:06 PM Jacob Kroon wrote: > > On Fri, Nov 30, 2018 at 3:18 AM Chen Qi wrote: > > > > We default hostname to ${MACHINE}, but it's not in /etc/hosts, > > resulting in commands like `hostname -f' failing due to lack > > of entry. > > > > So add entry to /etc/hosts according

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-12-26 Thread Jacob Kroon
On Fri, Nov 30, 2018 at 3:18 AM Chen Qi wrote: > > We default hostname to ${MACHINE}, but it's not in /etc/hosts, > resulting in commands like `hostname -f' failing due to lack > of entry. > > So add entry to /etc/hosts according to /etc/hostname. We do > this via pkg_postinst because hostname is

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-12-14 Thread Burton, Ross
On Fri, 30 Nov 2018 at 02:18, Chen Qi wrote: > We default hostname to ${MACHINE}, but it's not in /etc/hosts, > resulting in commands like `hostname -f' failing due to lack > of entry. > > So add entry to /etc/hosts according to /etc/hostname. We do > this via pkg_postinst because hostname is set

[OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-11-29 Thread Chen Qi
We default hostname to ${MACHINE}, but it's not in /etc/hosts, resulting in commands like `hostname -f' failing due to lack of entry. So add entry to /etc/hosts according to /etc/hostname. We do this via pkg_postinst because hostname is set in base-files recipe. Signed-off-by: Chen Qi ---

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-11-28 Thread Richard Purdie
On Wed, 2018-11-28 at 10:26 +, Burton, Ross wrote: > What if the hostname entry already exists? $sysconfdir instead of > hard-coding etc. > > I can't help but think a better solution would be to simply move > /etc/hosts to base-files, so it can be updated at the same time as > hostname. I'm

Re: [OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-11-28 Thread Burton, Ross
What if the hostname entry already exists? $sysconfdir instead of hard-coding etc. I can't help but think a better solution would be to simply move /etc/hosts to base-files, so it can be updated at the same time as hostname. Ross On Mon, 26 Nov 2018 at 06:51, Chen Qi wrote: > > We default

[OE-core] [PATCH 1/1] netbase: add entry to /etc/hosts according to /etc/hostname

2018-11-25 Thread Chen Qi
We default hostname to ${MACHINE}, but it's not in /etc/hosts, resulting in commands like `hostname -f' failing due to lack of entry. So add entry to /etc/hosts according to /etc/hostname. We do this via pkg_postinst because hostname is set in base-files recipe. Signed-off-by: Chen Qi ---